|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Client
Field Summary | |
---|---|
static String |
KEEP_CONDUIT_ALIVE
|
static String |
REQUEST_CONTEXT
|
static String |
RESPONSE_CONTEXT
|
Method Summary | |
---|---|
void |
destroy()
Indicates that the client is no longer needed and that any resources it holds can now be freed. |
Bus |
getBus()
Retrieves the Bus that was used to create the Client |
Conduit |
getConduit()
Get the Conduit that messages for this client will be sent on. |
ConduitSelector |
getConduitSelector()
Get the ConduitSelector responsible for retreiving the Conduit. |
Endpoint |
getEndpoint()
|
Map<String,Object> |
getRequestContext()
Gets the request context used for future invocations |
Map<String,Object> |
getResponseContext()
Gets the response context from the last invocation on this thread |
Object[] |
invoke(BindingOperationInfo oi,
Object... params)
Invokes an operation synchronously |
Object[] |
invoke(BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
Invokes an operation synchronously |
Object[] |
invoke(BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
Exchange exchange)
Invokes an operation synchronously |
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object... params)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object[] params,
Exchange exchange)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object[] params,
Map<String,Object> context)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
BindingOperationInfo oi,
Object[] params,
Map<String,Object> context,
Exchange exchange)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
QName operationName,
Object... params)
Invokes an operation asynchronously |
void |
invoke(ClientCallback callback,
String operationName,
Object... params)
Invokes an operation asynchronously |
Object[] |
invoke(QName operationName,
Object... params)
Invokes an operation synchronously |
Object[] |
invoke(String operationName,
Object... params)
Invokes an operation synchronously |
void |
invokeWrapped(ClientCallback callback,
QName operationName,
Object... params)
Invokes an operation asynchronously |
void |
invokeWrapped(ClientCallback callback,
String operationName,
Object... params)
Invokes an operation asynchronously |
Object[] |
invokeWrapped(QName operationName,
Object... params)
Invokes an operation synchronously |
Object[] |
invokeWrapped(String operationName,
Object... params)
Invokes an operation synchronously |
boolean |
isThreadLocalRequestContext()
Checks if the Request context is thread local or global. |
void |
setConduitSelector(ConduitSelector selector)
Set the ConduitSelector responsible for retreiving the Conduit. |
void |
setExecutor(Executor executor)
Sets the executor which is used to process Asynchronous responses. |
void |
setThreadLocalRequestContext(boolean b)
Sets whether the request context is thread local or global to this client. |
Methods inherited from interface org.apache.cxf.interceptor.InterceptorProvider |
---|
getInFaultInterceptors, getInInterceptors, getOutFaultInterceptors, getOutInterceptors |
Methods inherited from interface org.apache.cxf.transport.MessageObserver |
---|
onMessage |
Field Detail |
---|
static final String REQUEST_CONTEXT
static final String RESPONSE_CONTEXT
static final String KEEP_CONDUIT_ALIVE
Method Detail |
---|
Object[] invoke(String operationName, Object... params) throws Exception
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
Exception
Object[] invoke(QName operationName, Object... params) throws Exception
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
Exception
Object[] invokeWrapped(String operationName, Object... params) throws Exception
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
Exception
Object[] invokeWrapped(QName operationName, Object... params) throws Exception
operationName
- The name of the operation to be invokedparams
- The params that matches the parts of the input message of the operation
Exception
Object[] invoke(BindingOperationInfo oi, Object... params) throws Exception
oi
- The operation to be invokedparams
- The params that matches the parts of the input message of the operation
Exception
Object[] invoke(BindingOperationInfo oi, Object[] params, Map<String,Object> context) throws Exception
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
Exception
Object[] invoke(BindingOperationInfo oi, Object[] params, Map<String,Object> context, Exchange exchange) throws Exception
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
Exception
void invoke(ClientCallback callback, String operationName, Object... params) throws Exception
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
Exception
void invoke(ClientCallback callback, QName operationName, Object... params) throws Exception
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
Exception
void invokeWrapped(ClientCallback callback, String operationName, Object... params) throws Exception
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
Exception
void invokeWrapped(ClientCallback callback, QName operationName, Object... params) throws Exception
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
Exception
void invoke(ClientCallback callback, BindingOperationInfo oi, Object... params) throws Exception
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
Exception
void invoke(ClientCallback callback, BindingOperationInfo oi, Object[] params, Map<String,Object> context) throws Exception
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 operationcontext
- contextual information for the invocation
Exception
void invoke(ClientCallback callback, BindingOperationInfo oi, Object[] params, Exchange exchange) throws Exception
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 operationexchange
- The Exchange to be used for the invocation
Exception
void invoke(ClientCallback callback, BindingOperationInfo oi, Object[] params, Map<String,Object> context, Exchange exchange) throws Exception
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 operationcontext
- Optional (can be null) contextual information for the invocationexchange
- Optional (can be null) The Exchange to be used for the invocation
Exception
Map<String,Object> getRequestContext()
Map<String,Object> getResponseContext()
void setThreadLocalRequestContext(boolean b)
b
- boolean isThreadLocalRequestContext()
Endpoint getEndpoint()
Conduit getConduit()
ConduitSelector getConduitSelector()
void setConduitSelector(ConduitSelector selector)
selector
- the ConduitSelector to usevoid destroy()
void setExecutor(Executor executor)
executor
- Bus getBus()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |