public class DynamicClientFactory extends Object
newInstance(org.apache.cxf.Bus)
to obtain an instance, and then
createClient(String)
(or other overloads) to create a client.
It uses the JAXB data binding. It does not set up complex interceptors for
features such as attachments.
See JaxWsDynamicClientFactory
for an alternative that sets up JAX-WS endpoints.
This class may be subclassed to allow for other endpoints or behaviors.Modifier and Type | Class and Description |
---|---|
static class |
DynamicClientFactory.LocationFilterReader |
Modifier | Constructor and Description |
---|---|
protected |
DynamicClientFactory(Bus bus) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowWrapperOps() |
protected void |
applySchemaCompilerOptions(JAXBUtils.SchemaCompiler compiler) |
Node |
cloneNode(Document document,
Node node,
boolean deep) |
protected boolean |
compileJavaSrc(String classPath,
List<File> srcList,
String dest) |
Client |
createClient(String wsdlUrl)
Create a new
Client instance using the WSDL to be loaded
from the specified URL and using the current classloading context. |
Client |
createClient(String wsdlUrl,
ClassLoader classLoader)
Create a new
Client instance using the WSDL to be loaded
from the specified URL and with the specified ClassLoader
as parent. |
Client |
createClient(String wsdlUrl,
ClassLoader classLoader,
List<String> bindingFiles) |
Client |
createClient(String wsdlUrl,
List<String> bindingFiles) |
Client |
createClient(String wsdlUrl,
QName service) |
Client |
createClient(String wsdlUrl,
QName service,
ClassLoader classLoader,
QName port) |
Client |
createClient(String wsdlUrl,
QName service,
ClassLoader classLoader,
QName port,
List<String> bindingFiles) |
Client |
createClient(String wsdlUrl,
QName service,
List<String> bindingFiles) |
Client |
createClient(String wsdlUrl,
QName service,
QName port) |
Client |
createClient(String wsdlUrl,
QName service,
QName port,
List<String> bindingFiles) |
Client |
createClient(URL wsdlUrl)
Create a new
Client instance using the WSDL to be loaded
from the specified URL and using the current classloading context. |
Client |
createClient(URL wsdlUrl,
ClassLoader classLoader)
Create a new
Client instance using the WSDL to be loaded
from the specified URL and with the specified ClassLoader
as parent. |
Client |
createClient(URL wsdlUrl,
ClassLoader classLoader,
List<String> bindingFiles) |
Client |
createClient(URL wsdlUrl,
List<String> bindingFiles) |
Client |
createClient(URL wsdlUrl,
QName service) |
Client |
createClient(URL wsdlUrl,
QName service,
ClassLoader classLoader,
QName port) |
Client |
createClient(URL wsdlUrl,
QName service,
ClassLoader classLoader,
QName port,
List<String> bindingFiles) |
Client |
createClient(URL wsdlUrl,
QName service,
List<String> bindingFiles) |
Client |
createClient(URL wsdlUrl,
QName service,
QName port) |
Client |
createClient(URL wsdlUrl,
QName service,
QName port,
List<String> bindingFiles) |
protected JAXBUtils.SchemaCompiler |
createSchemaCompiler() |
protected EndpointImplFactory |
getEndpointImplFactory() |
Map<String,Object> |
getJaxbContextProperties()
Return the map of JAXB context properties used at the time that we create new contexts.
|
boolean |
isSimpleBindingEnabled() |
static DynamicClientFactory |
newInstance()
Create a new instance using a default Bus.
|
static DynamicClientFactory |
newInstance(Bus b)
Create a new instance using a specific Bus.
|
void |
setAllowElementReferences(boolean b) |
void |
setJaxbContextProperties(Map<String,Object> jaxbContextProperties)
Set the map of JAXB context properties used at the time that we create new contexts.
|
void |
setSchemaCompilerOptions(String[] options) |
void |
setSimpleBindingEnabled(boolean simpleBindingEnabled) |
void |
setTemporaryDirectory(String dir) |
protected DynamicClientFactory(Bus bus)
protected EndpointImplFactory getEndpointImplFactory()
public void setTemporaryDirectory(String dir)
public void setAllowElementReferences(boolean b)
public void setSchemaCompilerOptions(String[] options)
public static DynamicClientFactory newInstance(Bus b)
b
- the Bus to use in subsequent operations with the
instancepublic static DynamicClientFactory newInstance()
BusFactory.getDefaultBus()
public Client createClient(String wsdlUrl)
Client
instance using the WSDL to be loaded
from the specified URL and using the current classloading context.wsdlUrl
- the URL to loadpublic Client createClient(URL wsdlUrl)
Client
instance using the WSDL to be loaded
from the specified URL and using the current classloading context.wsdlUrl
- the URL to loadpublic Client createClient(String wsdlUrl, ClassLoader classLoader)
Client
instance using the WSDL to be loaded
from the specified URL and with the specified ClassLoader
as parent.wsdlUrl
- classLoader
- public Client createClient(String wsdlUrl, ClassLoader classLoader, List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service, QName port, List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service, ClassLoader classLoader, QName port)
public Client createClient(URL wsdlUrl, ClassLoader classLoader)
Client
instance using the WSDL to be loaded
from the specified URL and with the specified ClassLoader
as parent.wsdlUrl
- classLoader
- public Client createClient(URL wsdlUrl, ClassLoader classLoader, List<String> bindingFiles)
public Client createClient(URL wsdlUrl, QName service, QName port, List<String> bindingFiles)
public Client createClient(URL wsdlUrl, QName service, ClassLoader classLoader, QName port)
public Client createClient(URL wsdlUrl, QName service, ClassLoader classLoader, QName port, List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service, ClassLoader classLoader, QName port, List<String> bindingFiles)
protected boolean allowWrapperOps()
protected JAXBUtils.SchemaCompiler createSchemaCompiler()
protected void applySchemaCompilerOptions(JAXBUtils.SchemaCompiler compiler)
public boolean isSimpleBindingEnabled()
public void setSimpleBindingEnabled(boolean simpleBindingEnabled)
public Map<String,Object> getJaxbContextProperties()
public void setJaxbContextProperties(Map<String,Object> jaxbContextProperties)
jaxbContextProperties
- public Node cloneNode(Document document, Node node, boolean deep) throws DOMException
DOMException
Apache CXF