public class ClientConfiguration extends Object implements InterceptorProvider, ConduitSelectorHolder
| Constructor and Description |
|---|
ClientConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
Bus |
getBus()
Gets the bus
|
Conduit |
getConduit()
Gets the conduit responsible for a transport-level
communication with the remote service.
|
ConduitSelector |
getConduitSelector()
Gets the conduit selector
|
Endpoint |
getEndpoint() |
HTTPConduit |
getHttpConduit()
Gets the HTTP conduit responsible for a transport-level
communication with the remote service.
|
List<Interceptor<? extends Message>> |
getInFaultInterceptors()
Returns the list of interceptors attached to the incoming fault interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getInInterceptors()
Returns the list of interceptors attached to the incoming interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getOutFaultInterceptors()
Returns the list of interceptors attached to the outgoing fault interceptor
chain of the object.
|
List<Interceptor<? extends Message>> |
getOutInterceptors()
Returns the list of interceptors attached to the outgoing interceptor
chain of the object.
|
Map<String,Object> |
getRequestContext()
Get the map of properties which affect the requests only.
|
Map<String,Object> |
getResponseContext()
Get the map of properties which affect the responses only.
|
long |
getSynchronousTimeout() |
boolean |
isResetThreadLocalStateImmediately() |
boolean |
isResponseExpectedForOneway()
Indicates if Response may still be expected for oneway requests.
|
boolean |
isShutdownBusOnClose() |
void |
setBus(Bus bus)
Sets the bus
|
void |
setConduitSelector(ConduitSelector cs)
Sets the conduit selector
|
void |
setInFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
Sets the list of in fault interceptors which will deal with the HTTP
faults; the client code may choose to catch
WebApplicationException
exceptions instead. |
void |
setInInterceptors(List<Interceptor<? extends Message>> interceptors)
Sets the list of in interceptors which pre-process
the responses from remote services.
|
void |
setOutFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
Sets the list of out fault interceptors which will deal with the client-side
faults; the client code may choose to catch
ClientException
exceptions instead. |
void |
setOutInterceptors(List<Interceptor<? extends Message>> interceptors)
Sets the list of out interceptors which post-process
the requests to the remote services.
|
void |
setResetThreadLocalStateImmediately(boolean reset) |
void |
setShutdownBusOnClose(boolean shutdownBusOnClose) |
void |
setSynchronousTimeout(long synchronousTimeout)
Sets the synchronous timeout
|
public long getSynchronousTimeout()
public void setSynchronousTimeout(long synchronousTimeout)
synchronousTimeout - public boolean isResponseExpectedForOneway()
public void setConduitSelector(ConduitSelector cs)
setConduitSelector in interface ConduitSelectorHoldercs - the selectorpublic ConduitSelector getConduitSelector()
getConduitSelector in interface ConduitSelectorHolderpublic void setBus(Bus bus)
bus - the buspublic Bus getBus()
public List<Interceptor<? extends Message>> getInFaultInterceptors()
InterceptorProvidergetInFaultInterceptors in interface InterceptorProviderList incoming fault interceptor chainpublic List<Interceptor<? extends Message>> getInInterceptors()
InterceptorProvidergetInInterceptors in interface InterceptorProviderList incoming interceptor chainpublic List<Interceptor<? extends Message>> getOutFaultInterceptors()
InterceptorProvidergetOutFaultInterceptors in interface InterceptorProviderList outgoing fault interceptor chainpublic List<Interceptor<? extends Message>> getOutInterceptors()
InterceptorProvidergetOutInterceptors in interface InterceptorProviderList outgoing interceptor chainpublic void setInInterceptors(List<Interceptor<? extends Message>> interceptors)
interceptors - in interceptorspublic void setOutInterceptors(List<Interceptor<? extends Message>> interceptors)
interceptors - out interceptorspublic void setInFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
WebApplicationException
exceptions instead.interceptors - in fault interceptorspublic void setOutFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
ClientException
exceptions instead.interceptors - out fault interceptorspublic Conduit getConduit()
public HTTPConduit getHttpConduit()
public Map<String,Object> getResponseContext()
public Map<String,Object> getRequestContext()
public Endpoint getEndpoint()
public boolean isShutdownBusOnClose()
public void setShutdownBusOnClose(boolean shutdownBusOnClose)
public boolean isResetThreadLocalStateImmediately()
public void setResetThreadLocalStateImmediately(boolean reset)
Apache CXF