public class ClientProxyFactoryBean
extends org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setServiceClass(YourServiceInterface.class); YourServiceInterface client = (YourServiceInterface) factory.create();To access the underlying Client object:
Client cxfClient = ClientProxy.getClient(client);
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
configured |
| Constructor and Description |
|---|
ClientProxyFactoryBean() |
ClientProxyFactoryBean(ClientFactoryBean fact) |
| Modifier and Type | Method and Description |
|---|---|
protected ClientProxy |
clientClientProxy(org.apache.cxf.endpoint.Client c) |
Object |
create()
Creates a proxy object that can be used to make remote invocations.
|
<ProxyServiceType> |
create(Class<ProxyServiceType> serviceClass)
Create a proxy object that implements a specified Service Endpoint Interface.
|
String |
getAddress() |
org.apache.cxf.binding.BindingConfiguration |
getBindingConfig() |
String |
getBindingId() |
org.apache.cxf.Bus |
getBus() |
ClientFactoryBean |
getClientFactoryBean() |
org.apache.cxf.endpoint.ConduitSelector |
getConduitSelector() |
protected String |
getConfiguredName() |
org.apache.cxf.databinding.DataBinding |
getDataBinding() |
QName |
getEndpointName() |
List<org.apache.cxf.feature.Feature> |
getFeatures() |
protected Class<?>[] |
getImplementingClasses() |
String |
getPassword() |
Map<String,Object> |
getProperties()
Returns the property map for the proxy factory.
|
Class<?> |
getServiceClass() |
org.apache.cxf.wsdl.service.factory.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(org.apache.cxf.binding.BindingConfiguration config) |
void |
setBindingId(String bind) |
void |
setBus(org.apache.cxf.Bus bus) |
void |
setClientFactoryBean(ClientFactoryBean clientFactoryBean) |
void |
setConduitSelector(org.apache.cxf.endpoint.ConduitSelector selector) |
void |
setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding) |
void |
setEndpointName(QName endpointName) |
void |
setFeatures(List<? extends org.apache.cxf.feature.Feature> 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(org.apache.cxf.wsdl.service.factory.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.
|
public ClientProxyFactoryBean()
public ClientProxyFactoryBean(ClientFactoryBean fact)
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(org.apache.cxf.endpoint.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 org.apache.cxf.endpoint.ConduitSelector getConduitSelector()
public void setConduitSelector(org.apache.cxf.endpoint.ConduitSelector selector)
public void setBindingId(String bind)
public String getBindingId()
public void setTransportId(String transportId)
public String getTransportId()
public org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean getServiceFactory()
public void setServiceFactory(org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean sf)
public org.apache.cxf.Bus getBus()
public void setBus(org.apache.cxf.Bus bus)
public Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
properties - the property mappublic List<org.apache.cxf.feature.Feature> getFeatures()
public void setFeatures(List<? extends org.apache.cxf.feature.Feature> f)
public org.apache.cxf.databinding.DataBinding getDataBinding()
public void setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding)
public void setBindingConfig(org.apache.cxf.binding.BindingConfiguration config)
public org.apache.cxf.binding.BindingConfiguration getBindingConfig()
Apache CXF