public class ClientProxyFactoryBean extends 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(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() |
BindingConfiguration |
getBindingConfig() |
String |
getBindingId() |
Bus |
getBus() |
ClientFactoryBean |
getClientFactoryBean() |
ConduitSelector |
getConduitSelector() |
protected String |
getConfiguredName() |
DataBinding |
getDataBinding() |
QName |
getEndpointName() |
List<Feature> |
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<? extends 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(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.
|
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors, setInFaultInterceptors, setInInterceptors, setOutFaultInterceptors, setOutInterceptors
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(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 DataBinding getDataBinding()
public void setDataBinding(DataBinding dataBinding)
public void setBindingConfig(BindingConfiguration config)
public BindingConfiguration getBindingConfig()
Apache CXF