public abstract class ClientInterceptorAdapter extends Object implements ClientInterceptor
ClientInterceptor
interface, for simplified implementation of
pre-only/post-only interceptors.Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses
|
Constructor and Description |
---|
ClientInterceptorAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(MessageContext messageContext,
Exception ex)
Does nothing by default.
|
boolean |
handleFault(MessageContext messageContext)
Processes the incoming response fault.
|
boolean |
handleRequest(MessageContext messageContext)
Processes the outgoing request message.
|
boolean |
handleResponse(MessageContext messageContext)
Processes the incoming response message.
|
protected final org.apache.commons.logging.Log logger
public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException
ClientInterceptor
handleRequest
in interface ClientInterceptor
messageContext
- contains the outgoing request messagetrue
to continue processing of the request interceptors; false
to indicate
blocking of the request endpoint chainWebServiceClientException
- in case of errorsMessageContext.getRequest()
public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException
ClientInterceptor
WebServiceTemplate
.
Note: Will only be called if this interceptor's ClientInterceptor.handleRequest(org.springframework.ws.context.MessageContext)
method has successfully completed.
handleResponse
in interface ClientInterceptor
messageContext
- contains the outgoing request messagetrue
to continue processing of the request interceptors; false
to indicate
blocking of the response endpoint chainWebServiceClientException
- in case of errorsMessageContext.getResponse()
public boolean handleFault(MessageContext messageContext) throws WebServiceClientException
ClientInterceptor
WebServiceTemplate
.
Note: Will only be called if this interceptor's ClientInterceptor.handleRequest(org.springframework.ws.context.MessageContext)
method has successfully completed.
handleFault
in interface ClientInterceptor
messageContext
- contains the outgoing request messagetrue
to continue processing of the request interceptors; false
to indicate
blocking of the request endpoint chainWebServiceClientException
- in case of errorsMessageContext.getResponse()
,
FaultAwareWebServiceMessage.hasFault()
public void afterCompletion(MessageContext messageContext, Exception ex) throws WebServiceClientException
afterCompletion
in interface ClientInterceptor
messageContext
- contains both request and response messages, the response should contains a Faultex
- exception thrown on handler execution, if anyWebServiceClientException
- in case of errorsCopyright © 2018 Pivotal Software. All rights reserved.