|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cxf.interceptor.AbstractBasicInterceptorProvider
org.apache.cxf.endpoint.ClientImpl
public class ClientImpl
Nested Class Summary | |
---|---|
static class |
ClientImpl.EchoContext
|
Field Summary | |
---|---|
protected Bus |
bus
|
protected ConduitSelector |
conduitSelector
|
protected java.util.Map<java.lang.String,java.lang.Object> |
currentRequestContext
|
protected java.util.concurrent.Executor |
executor
|
static java.lang.String |
FINISHED
|
protected PhaseChainCache |
inboundChainCache
|
protected PhaseChainCache |
outboundChainCache
|
protected ClientOutFaultObserver |
outFaultObserver
|
protected java.util.Map<java.lang.Thread,ClientImpl.EchoContext> |
requestContext
|
protected java.util.Map<java.lang.Thread,java.util.Map<java.lang.String,java.lang.Object>> |
responseContext
|
protected int |
synchronousTimeout
|
static java.lang.String |
THREAD_LOCAL_REQUEST_CONTEXT
|
Fields inherited from interface org.apache.cxf.endpoint.Client |
---|
KEEP_CONDUIT_ALIVE, REQUEST_CONTEXT, RESPONSE_CONTEXT |
Constructor Summary | |
---|---|
ClientImpl(Bus b,
Endpoint e)
|
|
ClientImpl(Bus b,
Endpoint e,
Conduit c)
|
|
ClientImpl(Bus b,
Endpoint e,
ConduitSelector sc)
|
|
ClientImpl(Bus bus,
java.net.URL wsdlUrl,
javax.xml.namespace.QName service,
javax.xml.namespace.QName port)
Create a Client that uses the default EndpointImpl. |
|
ClientImpl(Bus bus,
java.net.URL wsdlUrl,
javax.xml.namespace.QName service,
javax.xml.namespace.QName port,
EndpointImplFactory endpointImplFactory)
Create a Client that uses a specific EndpointImpl. |
|
ClientImpl(java.net.URL wsdlUrl)
|
|
ClientImpl(java.net.URL wsdlUrl,
javax.xml.namespace.QName port)
|
Method Summary | |
---|---|
void |
destroy()
Indicates that the client is no longer needed and that any resources it holds can now be freed. |
Conduit |
getConduit()
Get the Conduit that messages for this client will be sent on. |
ConduitSelector |
getConduitSelector()
Get the ConduitSelector responsible for retreiving the Conduit. |
protected ConduitSelector |
getConduitSelector(ConduitSelector override)
|
Endpoint |
getEndpoint()
|
protected java.lang.Exception |
getException(Exchange exchange)
|
java.util.Map<java.lang.String,java.lang.Object> |
getRequestContext()
Gets the request context used for future invocations |
java.util.Map<java.lang.String,java.lang.Object> |
getResponseContext()
Gets the response context from the last invocation on this thread |
int |
getSynchronousTimeout()
|
java.lang.Object[] |
invoke(BindingOperationInfo oi,
java.lang.Object... params)
Invokes an operation synchronously |
java.lang.Object[] |
invoke(BindingOperationInfo oi,
java.lang.Object[] params,
Exchange exchange)
|
java.lang.Object[] |
invoke(BindingOperationInfo oi,
java.lang.Object[] params,
java.util.Map<java.lang.String,java.lang.Object> context)
Invokes an operation synchronously |
java.lang.Object[] |
invoke(BindingOperationInfo oi,
java.lang.Object[] params,
java.util.Map<java.lang.String,java.lang.Object> context,
Exchange exchange)
Invokes an operation synchronously |
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
java.lang.Object... params)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
javax.xml.namespace.QName operationName,
java.lang.Object... params)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
java.lang.String operationName,
java.lang.Object... params)
Invokes an operation asynchronously |
java.lang.Object[] |
invoke(javax.xml.namespace.QName operationName,
java.lang.Object... params)
Invokes an operation synchronously |
java.lang.Object[] |
invoke(java.lang.String operationName,
java.lang.Object... params)
Invokes an operation synchronously |
void |
invokeWrapped(ClientCallback callback,
javax.xml.namespace.QName operationName,
java.lang.Object... params)
Invokes an operation asynchronously |
void |
invokeWrapped(ClientCallback callback,
java.lang.String operationName,
java.lang.Object... params)
Invokes an operation asynchronously |
java.lang.Object[] |
invokeWrapped(javax.xml.namespace.QName operationName,
java.lang.Object... params)
Invokes an operation synchronously |
java.lang.Object[] |
invokeWrapped(java.lang.String operationName,
java.lang.Object... params)
Invokes an operation synchronously |
boolean |
isThreadLocalRequestContext()
Checks if the Request context is thread local or global. |
protected void |
modifyChain(InterceptorChain chain,
java.util.Map<java.lang.String,java.lang.Object> ctx)
|
void |
onMessage(Message message)
Called for an incoming message, i.e. |
protected void |
prepareConduitSelector(Message message)
|
protected java.lang.Object[] |
processResult(Message message,
Exchange exchange,
BindingOperationInfo oi,
java.util.Map<java.lang.String,java.lang.Object> resContext)
|
void |
setConduitSelector(ConduitSelector selector)
Set the ConduitSelector responsible for retreiving the Conduit. |
protected void |
setContext(java.util.Map<java.lang.String,java.lang.Object> ctx,
Message message)
|
protected void |
setEndpoint(Endpoint e)
|
protected void |
setExchangeProperties(Exchange exchange,
Endpoint endpoint,
BindingOperationInfo boi)
|
void |
setExecutor(java.util.concurrent.Executor executor)
Sets the executor which is used to process Asynchronous responses. |
protected void |
setOutMessageProperties(Message message,
BindingOperationInfo boi)
|
protected void |
setParameters(java.lang.Object[] params,
Message message)
|
void |
setSynchronousTimeout(int synchronousTimeout)
|
void |
setThreadLocalRequestContext(boolean b)
Sets whether the request context is thread local or global to this client. |
protected PhaseInterceptorChain |
setupInterceptorChain(Endpoint endpoint)
|
protected void |
waitResponse(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 |
Field Detail |
---|
public static final java.lang.String THREAD_LOCAL_REQUEST_CONTEXT
public static final java.lang.String FINISHED
protected Bus bus
protected ConduitSelector conduitSelector
protected ClientOutFaultObserver outFaultObserver
protected int synchronousTimeout
protected PhaseChainCache outboundChainCache
protected PhaseChainCache inboundChainCache
protected java.util.Map<java.lang.String,java.lang.Object> currentRequestContext
protected java.util.Map<java.lang.Thread,ClientImpl.EchoContext> requestContext
protected java.util.Map<java.lang.Thread,java.util.Map<java.lang.String,java.lang.Object>> responseContext
protected java.util.concurrent.Executor executor
Constructor Detail |
---|
public ClientImpl(Bus b, Endpoint e)
public ClientImpl(Bus b, Endpoint e, Conduit c)
public ClientImpl(Bus b, Endpoint e, ConduitSelector sc)
public ClientImpl(java.net.URL wsdlUrl)
public ClientImpl(java.net.URL wsdlUrl, javax.xml.namespace.QName port)
public ClientImpl(Bus bus, java.net.URL wsdlUrl, javax.xml.namespace.QName service, javax.xml.namespace.QName port)
bus
- wsdlUrl
- service
- port
- public ClientImpl(Bus bus, java.net.URL wsdlUrl, javax.xml.namespace.QName service, javax.xml.namespace.QName port, EndpointImplFactory endpointImplFactory)
bus
- wsdlUrl
- service
- port
- endpointImplFactory
- Method Detail |
---|
public void destroy()
Client
destroy
in interface Client
public Endpoint getEndpoint()
getEndpoint
in interface Client
public java.util.Map<java.lang.String,java.lang.Object> getRequestContext()
Client
getRequestContext
in interface Client
public java.util.Map<java.lang.String,java.lang.Object> getResponseContext()
Client
getResponseContext
in interface Client
public boolean isThreadLocalRequestContext()
Client
isThreadLocalRequestContext
in interface Client
public void setThreadLocalRequestContext(boolean b)
Client
setThreadLocalRequestContext
in interface Client
public java.lang.Object[] invoke(BindingOperationInfo oi, java.lang.Object... params) throws java.lang.Exception
Client
invoke
in interface Client
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operation
java.lang.Exception
public java.lang.Object[] invoke(java.lang.String operationName, java.lang.Object... params) throws java.lang.Exception
Client
invoke
in interface Client
operationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrapped
java.lang.Exception
public java.lang.Object[] invoke(javax.xml.namespace.QName operationName, java.lang.Object... params) throws java.lang.Exception
Client
invoke
in interface Client
operationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrapped
java.lang.Exception
public java.lang.Object[] invokeWrapped(java.lang.String operationName, java.lang.Object... params) throws java.lang.Exception
Client
invokeWrapped
in interface Client
operationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operation
java.lang.Exception
public java.lang.Object[] invokeWrapped(javax.xml.namespace.QName operationName, java.lang.Object... params) throws java.lang.Exception
Client
invokeWrapped
in interface Client
operationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation
java.lang.Exception
public java.lang.Object[] invoke(BindingOperationInfo oi, java.lang.Object[] params, Exchange exchange) throws java.lang.Exception
java.lang.Exception
public java.lang.Object[] invoke(BindingOperationInfo oi, java.lang.Object[] params, java.util.Map<java.lang.String,java.lang.Object> context) throws java.lang.Exception
Client
invoke
in interface Client
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationcontext
- Optional (can be null) contextual information for the invocation
java.lang.Exception
public void invoke(ClientCallback callback, java.lang.String operationName, java.lang.Object... params) throws java.lang.Exception
Client
invoke
in interface Client
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrapped
java.lang.Exception
public void invoke(ClientCallback callback, javax.xml.namespace.QName operationName, java.lang.Object... params) throws java.lang.Exception
Client
invoke
in interface Client
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation. If the
BindingOperationInfo supports unwrapping, it assumes the params are in the "unwrapped" form. If
params are in the wrapped form, use invokeWrapped
java.lang.Exception
public void invokeWrapped(ClientCallback callback, java.lang.String operationName, java.lang.Object... params) throws java.lang.Exception
Client
invokeWrapped
in interface Client
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invoked. The service namespace will be used
when looking up the BindingOperationInfo.params
- The params that matches the parts of the input message of the operation
java.lang.Exception
public void invokeWrapped(ClientCallback callback, javax.xml.namespace.QName operationName, java.lang.Object... params) throws java.lang.Exception
Client
invokeWrapped
in interface Client
callback
- The callback that is called when the response is readyoperationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation
java.lang.Exception
public void invoke(ClientCallback callback, BindingOperationInfo oi, java.lang.Object... params) throws java.lang.Exception
Client
invoke
in interface Client
callback
- The callback that is called when the response is readyoi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operation
java.lang.Exception
public java.lang.Object[] invoke(BindingOperationInfo oi, java.lang.Object[] params, java.util.Map<java.lang.String,java.lang.Object> context, Exchange exchange) throws java.lang.Exception
Client
invoke
in interface Client
invoke
in interface Retryable
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operationcontext
- Optional (can be null) contextual information for the invocationexchange
- The Exchange to be used for the invocation
java.lang.Exception
protected java.lang.Object[] processResult(Message message, Exchange exchange, BindingOperationInfo oi, java.util.Map<java.lang.String,java.lang.Object> resContext) throws java.lang.Exception
java.lang.Exception
protected java.lang.Exception getException(Exchange exchange)
protected void setContext(java.util.Map<java.lang.String,java.lang.Object> ctx, Message message)
protected void waitResponse(Exchange exchange)
protected void setParameters(java.lang.Object[] params, Message message)
public void onMessage(Message message)
MessageObserver
onMessage
in interface MessageObserver
public Conduit getConduit()
Client
getConduit
in interface Client
protected void prepareConduitSelector(Message message)
protected void setOutMessageProperties(Message message, BindingOperationInfo boi)
protected void setExchangeProperties(Exchange exchange, Endpoint endpoint, BindingOperationInfo boi)
protected PhaseInterceptorChain setupInterceptorChain(Endpoint endpoint)
protected void modifyChain(InterceptorChain chain, java.util.Map<java.lang.String,java.lang.Object> ctx)
protected void setEndpoint(Endpoint e)
public int getSynchronousTimeout()
public void setSynchronousTimeout(int synchronousTimeout)
public final ConduitSelector getConduitSelector()
Client
getConduitSelector
in interface Client
protected final ConduitSelector getConduitSelector(ConduitSelector override)
public final void setConduitSelector(ConduitSelector selector)
Client
setConduitSelector
in interface Client
selector
- the ConduitSelector to usepublic void setExecutor(java.util.concurrent.Executor executor)
Client
setExecutor
in interface Client
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |