|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.endpoint.dynamic.DynamicClientFactory
public class DynamicClientFactory
This class reads a WSDL and creates a dynamic client from it.
Use 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 org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory
for an alternative that sets up JAX-WS endpoints.
This class may be subclassed to allow for other endpoints or behaviors.
| Constructor Summary | |
|---|---|
protected |
DynamicClientFactory(org.apache.cxf.Bus bus)
|
| Method Summary | |
|---|---|
org.apache.cxf.endpoint.Client |
createClient(java.lang.String wsdlUrl)
Create a new Client instance using the WSDL to be loaded
from the specified URL and using the current classloading context. |
org.apache.cxf.endpoint.Client |
createClient(java.lang.String wsdlUrl,
java.lang.ClassLoader classLoader)
Create a new Client instance using the WSDL to be loaded
from the specified URL and with the specified ClassLoader
as parent. |
org.apache.cxf.endpoint.Client |
createClient(java.lang.String wsdlUrl,
javax.xml.namespace.QName service)
|
org.apache.cxf.endpoint.Client |
createClient(java.lang.String wsdlUrl,
javax.xml.namespace.QName service,
java.lang.ClassLoader classLoader,
javax.xml.namespace.QName port)
|
org.apache.cxf.endpoint.Client |
createClient(java.lang.String wsdlUrl,
javax.xml.namespace.QName service,
javax.xml.namespace.QName port)
|
protected org.apache.cxf.endpoint.EndpointImplFactory |
getEndpointImplFactory()
|
java.util.Map<java.lang.String,java.lang.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(org.apache.cxf.Bus b)
Create a new instance using a specific Bus. |
void |
setJaxbContextProperties(java.util.Map<java.lang.String,java.lang.Object> jaxbContextProperties)
Set the map of JAXB context properties used at the time that we create new contexts. |
void |
setSimpleBindingEnabled(boolean simpleBindingEnabled)
|
void |
setTemporaryDirectory(java.lang.String dir)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DynamicClientFactory(org.apache.cxf.Bus bus)
| Method Detail |
|---|
protected org.apache.cxf.endpoint.EndpointImplFactory getEndpointImplFactory()
public void setTemporaryDirectory(java.lang.String dir)
public static DynamicClientFactory newInstance(org.apache.cxf.Bus b)
b - the Bus to use in subsequent operations with the
instance
public static DynamicClientFactory newInstance()
BusFactory.getDefaultBus()public org.apache.cxf.endpoint.Client createClient(java.lang.String wsdlUrl)
Client instance using the WSDL to be loaded
from the specified URL and using the current classloading context.
wsdlURL - the URL to load
public org.apache.cxf.endpoint.Client createClient(java.lang.String wsdlUrl,
java.lang.ClassLoader classLoader)
Client instance using the WSDL to be loaded
from the specified URL and with the specified ClassLoader
as parent.
wsdlUrl - classLoader -
public org.apache.cxf.endpoint.Client createClient(java.lang.String wsdlUrl,
javax.xml.namespace.QName service)
public org.apache.cxf.endpoint.Client createClient(java.lang.String wsdlUrl,
javax.xml.namespace.QName service,
javax.xml.namespace.QName port)
public org.apache.cxf.endpoint.Client createClient(java.lang.String wsdlUrl,
javax.xml.namespace.QName service,
java.lang.ClassLoader classLoader,
javax.xml.namespace.QName port)
public boolean isSimpleBindingEnabled()
public void setSimpleBindingEnabled(boolean simpleBindingEnabled)
public java.util.Map<java.lang.String,java.lang.Object> getJaxbContextProperties()
public void setJaxbContextProperties(java.util.Map<java.lang.String,java.lang.Object> jaxbContextProperties)
jaxbContextProperties -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||