|
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.interceptor.AbstractBasicInterceptorProvider org.apache.cxf.frontend.ClientProxyFactoryBean
public class ClientProxyFactoryBean
This class will create a client for you which implements the specified service class. Example:
ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(YourServiceInterface.class); YourServiceInterface client = (YourServiceInterface) factory.create();To access the underlying Client object:
Client cxfClient = ClientProxy.getClient(client);
Field Summary | |
---|---|
protected boolean |
configured
|
Constructor Summary | |
---|---|
ClientProxyFactoryBean()
|
|
ClientProxyFactoryBean(ClientFactoryBean fact)
|
Method Summary | ||
---|---|---|
protected ClientProxy |
clientClientProxy(Client c)
|
|
Object |
create()
Creates a proxy object that can be used to make remote invocations. |
|
|
create(Class<ProxyServiceType> serviceClass)
Create a proxy object that implements a specified Service Endpoint Interface. |
|
String |
getAddress()
|
|
BindingConfiguration |
getBindingConfig()
|
|
String |
getBindingId()
|
|
Bus |
getBus()
|
|
ClientFactoryBean |
getClientFactoryBean()
|
|
ConduitSelector |
getConduitSelector()
|
|
protected String |
getConfiguredName()
|
|
DataBinding |
getDataBinding()
|
|
QName |
getEndpointName()
|
|
List<AbstractFeature> |
getFeatures()
|
|
protected Class<?>[] |
getImplementingClasses()
|
|
String |
getPassword()
|
|
Map<String,Object> |
getProperties()
Returns the property map for the proxy factory. |
|
Class<?> |
getServiceClass()
|
|
ReflectionServiceFactoryBean |
getServiceFactory()
|
|
QName |
getServiceName()
Returns the QName of the WSDL service the proxy implements |
|
String |
getTransportId()
|
|
String |
getUsername()
|
|
String |
getWsdlLocation()
|
|
String |
getWsdlURL()
|
|
void |
initFeatures()
|
|
void |
setAddress(String add)
|
|
void |
setBindingConfig(BindingConfiguration config)
|
|
void |
setBindingId(String bind)
|
|
void |
setBus(Bus bus)
|
|
void |
setClientFactoryBean(ClientFactoryBean clientFactoryBean)
|
|
void |
setConduitSelector(ConduitSelector selector)
|
|
void |
setDataBinding(DataBinding dataBinding)
|
|
void |
setEndpointName(QName endpointName)
|
|
void |
setFeatures(List<AbstractFeature> f)
|
|
void |
setPassword(String password)
|
|
void |
setProperties(Map<String,Object> properties)
Specifies a set of properties used to configure the proxies provided by the factory. |
|
void |
setServiceClass(Class<?> serviceClass)
Specifies the class representing the SEI the proxy implements. |
|
void |
setServiceFactory(ReflectionServiceFactoryBean sf)
|
|
void |
setServiceName(QName serviceName)
Specifies the QName of the WSDL service the proxy implements. |
|
void |
setTransportId(String transportId)
|
|
void |
setUsername(String username)
|
|
void |
setWsdlLocation(String wsdlURL)
Specifies the URL where the proxy can find the WSDL defining the service the proxy implements. |
|
void |
setWsdlURL(String wsdlURL)
Specifies the URL where the proxy can find the WSDL defining the service the proxy implements. |
Methods inherited from class org.apache.cxf.interceptor.AbstractBasicInterceptorProvider |
---|
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean configured
Constructor Detail |
---|
public ClientProxyFactoryBean()
public ClientProxyFactoryBean(ClientFactoryBean fact)
Method Detail |
---|
public void initFeatures()
public <ProxyServiceType> ProxyServiceType create(Class<ProxyServiceType> serviceClass)
setServiceClass(Class)
and create()
.
ProxyServiceType
- The type for the SEI.serviceClass
- The Java class object representing the interface you want.
protected String getConfiguredName()
public Object create()
protected Class<?>[] getImplementingClasses()
protected ClientProxy clientClientProxy(Client c)
public ClientFactoryBean getClientFactoryBean()
public void setClientFactoryBean(ClientFactoryBean clientFactoryBean)
public String getPassword()
public void setPassword(String password)
public Class<?> getServiceClass()
public void setServiceClass(Class<?> serviceClass)
serviceClass
- the SEI's classpublic String getUsername()
public void setUsername(String username)
public String getWsdlLocation()
public void setWsdlLocation(String wsdlURL)
wsdlURL
- a string containing the WSDL's URLpublic String getWsdlURL()
public void setWsdlURL(String wsdlURL)
wsdlURL
- a string containing the WSDL's URLpublic QName getEndpointName()
public void setEndpointName(QName endpointName)
public QName getServiceName()
public void setServiceName(QName serviceName)
serviceName
- the QName of the service for the proxypublic String getAddress()
public void setAddress(String add)
public ConduitSelector getConduitSelector()
public void setConduitSelector(ConduitSelector selector)
public void setBindingId(String bind)
public String getBindingId()
public void setTransportId(String transportId)
public String getTransportId()
public ReflectionServiceFactoryBean getServiceFactory()
public void setServiceFactory(ReflectionServiceFactoryBean sf)
public Bus getBus()
public void setBus(Bus bus)
public Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
properties
- the property mappublic List<AbstractFeature> getFeatures()
public void setFeatures(List<AbstractFeature> f)
public DataBinding getDataBinding()
public void setDataBinding(DataBinding dataBinding)
public void setBindingConfig(BindingConfiguration config)
public BindingConfiguration getBindingConfig()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |