org.apache.cxf.endpoint
Class ClientImpl
java.lang.Object
org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
org.apache.cxf.endpoint.ClientImpl
- All Implemented Interfaces:
- org.apache.cxf.endpoint.Client, org.apache.cxf.endpoint.Retryable, org.apache.cxf.interceptor.InterceptorProvider, org.apache.cxf.transport.MessageObserver
public class ClientImpl
- extends org.apache.cxf.interceptor.AbstractBasicInterceptorProvider
- implements org.apache.cxf.endpoint.Client, org.apache.cxf.endpoint.Retryable, org.apache.cxf.transport.MessageObserver
| Fields inherited from interface org.apache.cxf.endpoint.Client |
KEEP_CONDUIT_ALIVE, REQUEST_CONTEXT, RESPONSE_CONTEXT |
|
Constructor Summary |
ClientImpl(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint e)
|
ClientImpl(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint e,
org.apache.cxf.transport.Conduit c)
|
ClientImpl(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint e,
org.apache.cxf.endpoint.ConduitSelector sc)
|
ClientImpl(org.apache.cxf.Bus bus,
org.apache.cxf.service.Service svc,
QName port,
EndpointImplFactory endpointImplFactory)
Create a Client that uses a specific EndpointImpl. |
ClientImpl(org.apache.cxf.Bus bus,
URL wsdlUrl,
QName service,
QName port)
Create a Client that uses the default EndpointImpl. |
ClientImpl(org.apache.cxf.Bus bus,
URL wsdlUrl,
QName service,
QName port,
EndpointImplFactory endpointImplFactory)
Create a Client that uses a specific EndpointImpl. |
ClientImpl(URL wsdlUrl)
|
ClientImpl(URL wsdlUrl,
QName port)
|
|
Method Summary |
void |
destroy()
|
org.apache.cxf.Bus |
getBus()
|
org.apache.cxf.transport.Conduit |
getConduit()
|
org.apache.cxf.endpoint.ConduitSelector |
getConduitSelector()
|
protected org.apache.cxf.endpoint.ConduitSelector |
getConduitSelector(org.apache.cxf.endpoint.ConduitSelector override)
|
org.apache.cxf.endpoint.Endpoint |
getEndpoint()
|
protected Exception |
getException(org.apache.cxf.message.Exchange exchange)
|
Map<String,Object> |
getRequestContext()
|
Map<String,Object> |
getResponseContext()
|
int |
getSynchronousTimeout()
|
Object[] |
invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object... params)
|
Object[] |
invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
org.apache.cxf.message.Exchange exchange)
|
Object[] |
invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
|
Object[] |
invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
org.apache.cxf.message.Exchange exchange)
|
void |
invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object... params)
|
void |
invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
org.apache.cxf.message.Exchange exchange)
|
void |
invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
|
void |
invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
org.apache.cxf.message.Exchange exchange)
|
void |
invoke(org.apache.cxf.endpoint.ClientCallback callback,
QName operationName,
Object... params)
|
void |
invoke(org.apache.cxf.endpoint.ClientCallback callback,
String operationName,
Object... params)
|
Object[] |
invoke(QName operationName,
Object... params)
|
Object[] |
invoke(String operationName,
Object... params)
|
void |
invokeWrapped(org.apache.cxf.endpoint.ClientCallback callback,
QName operationName,
Object... params)
|
void |
invokeWrapped(org.apache.cxf.endpoint.ClientCallback callback,
String operationName,
Object... params)
|
Object[] |
invokeWrapped(QName operationName,
Object... params)
|
Object[] |
invokeWrapped(String operationName,
Object... params)
|
boolean |
isThreadLocalRequestContext()
|
protected void |
modifyChain(org.apache.cxf.interceptor.InterceptorChain chain,
org.apache.cxf.message.Message ctx,
boolean in)
|
void |
onMessage(org.apache.cxf.message.Message message)
|
protected void |
prepareConduitSelector(org.apache.cxf.message.Message message)
|
protected Object[] |
processResult(org.apache.cxf.message.Message message,
org.apache.cxf.message.Exchange exchange,
org.apache.cxf.service.model.BindingOperationInfo oi,
Map<String,Object> resContext)
|
void |
setConduitSelector(org.apache.cxf.endpoint.ConduitSelector selector)
|
protected void |
setContext(Map<String,Object> ctx,
org.apache.cxf.message.Message message)
|
protected void |
setEndpoint(org.apache.cxf.endpoint.Endpoint e)
|
protected void |
setExchangeProperties(org.apache.cxf.message.Exchange exchange,
org.apache.cxf.endpoint.Endpoint endpoint,
org.apache.cxf.service.model.BindingOperationInfo boi)
|
void |
setExecutor(Executor executor)
|
protected void |
setOutMessageProperties(org.apache.cxf.message.Message message,
org.apache.cxf.service.model.BindingOperationInfo boi)
|
protected void |
setParameters(Object[] params,
org.apache.cxf.message.Message message)
|
void |
setSynchronousTimeout(int synchronousTimeout)
|
void |
setThreadLocalRequestContext(boolean b)
|
protected org.apache.cxf.phase.PhaseInterceptorChain |
setupInterceptorChain(org.apache.cxf.endpoint.Endpoint endpoint)
|
protected void |
waitResponse(org.apache.cxf.message.Exchange exchange)
|
| 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 |
| Methods inherited from interface org.apache.cxf.interceptor.InterceptorProvider |
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors |
THREAD_LOCAL_REQUEST_CONTEXT
public static final String THREAD_LOCAL_REQUEST_CONTEXT
- See Also:
- Constant Field Values
FINISHED
public static final String FINISHED
- See Also:
- Constant Field Values
bus
protected org.apache.cxf.Bus bus
conduitSelector
protected org.apache.cxf.endpoint.ConduitSelector conduitSelector
outFaultObserver
protected ClientOutFaultObserver outFaultObserver
synchronousTimeout
protected int synchronousTimeout
outboundChainCache
protected org.apache.cxf.phase.PhaseChainCache outboundChainCache
inboundChainCache
protected org.apache.cxf.phase.PhaseChainCache inboundChainCache
currentRequestContext
protected Map<String,Object> currentRequestContext
requestContext
protected Map<Thread,ClientImpl.EchoContext> requestContext
responseContext
protected Map<Thread,Map<String,Object>> responseContext
executor
protected Executor executor
ClientImpl
public ClientImpl(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint e)
ClientImpl
public ClientImpl(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint e,
org.apache.cxf.transport.Conduit c)
ClientImpl
public ClientImpl(org.apache.cxf.Bus b,
org.apache.cxf.endpoint.Endpoint e,
org.apache.cxf.endpoint.ConduitSelector sc)
ClientImpl
public ClientImpl(URL wsdlUrl)
ClientImpl
public ClientImpl(URL wsdlUrl,
QName port)
ClientImpl
public ClientImpl(org.apache.cxf.Bus bus,
URL wsdlUrl,
QName service,
QName port)
- Create a Client that uses the default EndpointImpl.
- Parameters:
bus - wsdlUrl - service - port -
ClientImpl
public ClientImpl(org.apache.cxf.Bus bus,
URL wsdlUrl,
QName service,
QName port,
EndpointImplFactory endpointImplFactory)
- Create a Client that uses a specific EndpointImpl.
- Parameters:
bus - wsdlUrl - service - port - endpointImplFactory -
ClientImpl
public ClientImpl(org.apache.cxf.Bus bus,
org.apache.cxf.service.Service svc,
QName port,
EndpointImplFactory endpointImplFactory)
- Create a Client that uses a specific EndpointImpl.
- Parameters:
bus - service - port - endpointImplFactory -
getBus
public org.apache.cxf.Bus getBus()
- Specified by:
getBus in interface org.apache.cxf.endpoint.Client
destroy
public void destroy()
- Specified by:
destroy in interface org.apache.cxf.endpoint.Client
getEndpoint
public org.apache.cxf.endpoint.Endpoint getEndpoint()
- Specified by:
getEndpoint in interface org.apache.cxf.endpoint.Client
getRequestContext
public Map<String,Object> getRequestContext()
- Specified by:
getRequestContext in interface org.apache.cxf.endpoint.Client
getResponseContext
public Map<String,Object> getResponseContext()
- Specified by:
getResponseContext in interface org.apache.cxf.endpoint.Client
isThreadLocalRequestContext
public boolean isThreadLocalRequestContext()
- Specified by:
isThreadLocalRequestContext in interface org.apache.cxf.endpoint.Client
setThreadLocalRequestContext
public void setThreadLocalRequestContext(boolean b)
- Specified by:
setThreadLocalRequestContext in interface org.apache.cxf.endpoint.Client
invoke
public Object[] invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object... params)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public Object[] invoke(String operationName,
Object... params)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public Object[] invoke(QName operationName,
Object... params)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invokeWrapped
public Object[] invokeWrapped(String operationName,
Object... params)
throws Exception
- Specified by:
invokeWrapped in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invokeWrapped
public Object[] invokeWrapped(QName operationName,
Object... params)
throws Exception
- Specified by:
invokeWrapped in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public Object[] invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
org.apache.cxf.message.Exchange exchange)
throws Exception
- Throws:
Exception
invoke
public Object[] invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public void invoke(org.apache.cxf.endpoint.ClientCallback callback,
String operationName,
Object... params)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public void invoke(org.apache.cxf.endpoint.ClientCallback callback,
QName operationName,
Object... params)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invokeWrapped
public void invokeWrapped(org.apache.cxf.endpoint.ClientCallback callback,
String operationName,
Object... params)
throws Exception
- Specified by:
invokeWrapped in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invokeWrapped
public void invokeWrapped(org.apache.cxf.endpoint.ClientCallback callback,
QName operationName,
Object... params)
throws Exception
- Specified by:
invokeWrapped in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public void invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object... params)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public void invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public void invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
org.apache.cxf.message.Exchange exchange)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public void invoke(org.apache.cxf.endpoint.ClientCallback callback,
org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
org.apache.cxf.message.Exchange exchange)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client
- Throws:
Exception
invoke
public Object[] invoke(org.apache.cxf.service.model.BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
org.apache.cxf.message.Exchange exchange)
throws Exception
- Specified by:
invoke in interface org.apache.cxf.endpoint.Client- Specified by:
invoke in interface org.apache.cxf.endpoint.Retryable
- Throws:
Exception
processResult
protected Object[] processResult(org.apache.cxf.message.Message message,
org.apache.cxf.message.Exchange exchange,
org.apache.cxf.service.model.BindingOperationInfo oi,
Map<String,Object> resContext)
throws Exception
- Throws:
Exception
getException
protected Exception getException(org.apache.cxf.message.Exchange exchange)
setContext
protected void setContext(Map<String,Object> ctx,
org.apache.cxf.message.Message message)
waitResponse
protected void waitResponse(org.apache.cxf.message.Exchange exchange)
setParameters
protected void setParameters(Object[] params,
org.apache.cxf.message.Message message)
onMessage
public void onMessage(org.apache.cxf.message.Message message)
- Specified by:
onMessage in interface org.apache.cxf.transport.MessageObserver
getConduit
public org.apache.cxf.transport.Conduit getConduit()
- Specified by:
getConduit in interface org.apache.cxf.endpoint.Client
prepareConduitSelector
protected void prepareConduitSelector(org.apache.cxf.message.Message message)
setOutMessageProperties
protected void setOutMessageProperties(org.apache.cxf.message.Message message,
org.apache.cxf.service.model.BindingOperationInfo boi)
setExchangeProperties
protected void setExchangeProperties(org.apache.cxf.message.Exchange exchange,
org.apache.cxf.endpoint.Endpoint endpoint,
org.apache.cxf.service.model.BindingOperationInfo boi)
setupInterceptorChain
protected org.apache.cxf.phase.PhaseInterceptorChain setupInterceptorChain(org.apache.cxf.endpoint.Endpoint endpoint)
modifyChain
protected void modifyChain(org.apache.cxf.interceptor.InterceptorChain chain,
org.apache.cxf.message.Message ctx,
boolean in)
setEndpoint
protected void setEndpoint(org.apache.cxf.endpoint.Endpoint e)
getSynchronousTimeout
public int getSynchronousTimeout()
setSynchronousTimeout
public void setSynchronousTimeout(int synchronousTimeout)
getConduitSelector
public final org.apache.cxf.endpoint.ConduitSelector getConduitSelector()
- Specified by:
getConduitSelector in interface org.apache.cxf.endpoint.Client
getConduitSelector
protected final org.apache.cxf.endpoint.ConduitSelector getConduitSelector(org.apache.cxf.endpoint.ConduitSelector override)
setConduitSelector
public final void setConduitSelector(org.apache.cxf.endpoint.ConduitSelector selector)
- Specified by:
setConduitSelector in interface org.apache.cxf.endpoint.Client
setExecutor
public void setExecutor(Executor executor)
- Specified by:
setExecutor in interface org.apache.cxf.endpoint.Client
Apache CXF