|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 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(Bus bus)
|
Method Summary | |
---|---|
protected boolean |
allowWrapperOps()
|
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 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 |
setSimpleBindingEnabled(boolean simpleBindingEnabled)
|
void |
setTemporaryDirectory(String dir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DynamicClientFactory(Bus bus)
Method Detail |
---|
protected EndpointImplFactory getEndpointImplFactory()
public void setTemporaryDirectory(String dir)
public void setAllowElementReferences(boolean b)
public static DynamicClientFactory newInstance(Bus b)
b
- the Bus to use in subsequent operations with the
instance
public 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 load
public Client createClient(String wsdlUrl, List<String> bindingFiles)
public 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 load
public Client createClient(URL wsdlUrl, List<String> bindingFiles)
public 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)
public Client createClient(String wsdlUrl, QName service, List<String> bindingFiles)
public Client createClient(String wsdlUrl, QName service, QName port)
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)
public Client createClient(URL wsdlUrl, QName service, List<String> bindingFiles)
public Client createClient(URL wsdlUrl, QName service, QName port)
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()
public boolean isSimpleBindingEnabled()
public void setSimpleBindingEnabled(boolean simpleBindingEnabled)
protected boolean compileJavaSrc(String classPath, List<File> srcList, String dest)
public Map<String,Object> getJaxbContextProperties()
public void setJaxbContextProperties(Map<String,Object> jaxbContextProperties)
jaxbContextProperties
-
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |