|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.jaxrs.client.ClientConfiguration
public class ClientConfiguration
Represents the configuration of the current proxy or WebClient. Given an instance with the name 'client', one can access its configuration using a WebClient.getConfig(client) call.
Constructor Summary | |
---|---|
ClientConfiguration()
|
Method Summary | |
---|---|
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 |
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 ServerWebApplicationException
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 ClientWebApplicationException
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientConfiguration()
Method Detail |
---|
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)
ServerWebApplicationException
exceptions instead.
interceptors
- in fault interceptorspublic void setOutFaultInterceptors(List<Interceptor<? extends Message>> interceptors)
ClientWebApplicationException
exceptions instead.
interceptors
- out fault interceptorspublic Conduit getConduit()
public HTTPConduit getHttpConduit()
public Map<String,Object> getResponseContext()
public Map<String,Object> getRequestContext()
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |