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 |
isResponseExpectedForOneway()
Indicates if Response may still be expected for oneway requests.
|
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 |
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 ConduitSelectorHolder
cs
- the selectorpublic ConduitSelector getConduitSelector()
getConduitSelector
in interface ConduitSelectorHolder
public void setBus(Bus bus)
bus
- the buspublic Bus getBus()
public List<Interceptor<? extends Message>> getInFaultInterceptors()
InterceptorProvider
getInFaultInterceptors
in interface InterceptorProvider
List
incoming fault interceptor chainpublic List<Interceptor<? extends Message>> getInInterceptors()
InterceptorProvider
getInInterceptors
in interface InterceptorProvider
List
incoming interceptor chainpublic List<Interceptor<? extends Message>> getOutFaultInterceptors()
InterceptorProvider
getOutFaultInterceptors
in interface InterceptorProvider
List
outgoing fault interceptor chainpublic List<Interceptor<? extends Message>> getOutInterceptors()
InterceptorProvider
getOutInterceptors
in interface InterceptorProvider
List
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()
Apache CXF