|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.server.endpoint.interceptor.DelegatingSmartEndpointInterceptor
public class DelegatingSmartEndpointInterceptor
Implementation of the SmartEndpointInterceptor interface that delegates to a delegate EndpointInterceptor.
| Constructor Summary | |
|---|---|
DelegatingSmartEndpointInterceptor(EndpointInterceptor delegate)
Creates a new instance of the DelegatingSmartEndpointInterceptor with the given delegate. |
|
| Method Summary | |
|---|---|
void |
afterCompletion(MessageContext messageContext,
Object endpoint,
Exception ex)
Callback after completion of request and response (fault) processing. |
EndpointInterceptor |
getDelegate()
Returns the delegate. |
boolean |
handleFault(MessageContext messageContext,
Object endpoint)
Processes the outgoing response fault. |
boolean |
handleRequest(MessageContext messageContext,
Object endpoint)
Processes the incoming request message. |
boolean |
handleResponse(MessageContext messageContext,
Object endpoint)
Processes the outgoing response message. |
boolean |
shouldIntercept(MessageContext messageContext,
Object endpoint)
Indicates whether this interceptor should intercept the given message context. |
protected boolean |
shouldIntercept(WebServiceMessage request,
Object endpoint)
Indicates whether this interceptor should intercept the given request message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingSmartEndpointInterceptor(EndpointInterceptor delegate)
DelegatingSmartEndpointInterceptor with the given delegate.
delegate - the endpoint interceptor to delegate to.| Method Detail |
|---|
public EndpointInterceptor getDelegate()
public boolean shouldIntercept(MessageContext messageContext,
Object endpoint)
shouldIntercept(WebServiceMessage, Object).
shouldIntercept in interface SmartEndpointInterceptormessageContext - contains the incoming request messageendpoint - chosen endpoint to invoke
true to indicate that this interceptor applies; false otherwise
protected boolean shouldIntercept(WebServiceMessage request,
Object endpoint)
true.
request - the request messageendpoint - chosen endpoint to invoke
true to indicate that this interceptor applies; false otherwise
public boolean handleRequest(MessageContext messageContext,
Object endpoint)
throws Exception
EndpointInterceptorEndpointMapping determined an appropriate endpoint
object, but before EndpointAdapter invokes the endpoint.
MessageDispatcher processes an endpoint in an invocation chain, consisting of any number of interceptors,
with the endpoint itself at the end. With this method, each interceptor can decide to abort the chain, typically
creating a custom response.
handleRequest in interface EndpointInterceptormessageContext - contains the incoming request messageendpoint - chosen endpoint to invoke
true to continue processing of the request interceptor chain; false to indicate
blocking of the request endpoint chain, without invoking the endpoint
Exception - in case of errorsMessageContext.getRequest()
public boolean handleResponse(MessageContext messageContext,
Object endpoint)
throws Exception
EndpointInterceptorEndpointAdapter actually invoked the endpoint. Can
manipulate the response, if any, by adding new headers, etc.
MessageDispatcher processes an endpoint in an invocation chain, consisting of any number of interceptors,
with the endpoint itself at the end. With this method, each interceptor can post-process an invocation, getting
applied in inverse order of the execution chain.
Note: Will only be called if this interceptor's EndpointInterceptor.handleRequest(org.springframework.ws.context.MessageContext, java.lang.Object) method has successfully completed.
handleResponse in interface EndpointInterceptormessageContext - contains both request and response messagesendpoint - chosen endpoint to invoke
true to continue processing of the response interceptor chain; false to indicate
blocking of the response endpoint chain.
Exception - in case of errorsMessageContext.getRequest(),
MessageContext.hasResponse(),
MessageContext.getResponse()
public boolean handleFault(MessageContext messageContext,
Object endpoint)
throws Exception
EndpointInterceptorEndpointAdapter actually invoked the endpoint. Can
manipulate the response, if any, by adding new headers, etc.
MessageDispatcher processes an endpoint in an invocation chain, consisting of any number of interceptors,
with the endpoint itself at the end. With this method, each interceptor can post-process an invocation, getting
applied in inverse order of the execution chain.
Note: Will only be called if this interceptor's EndpointInterceptor.handleRequest(org.springframework.ws.context.MessageContext, java.lang.Object) method has successfully completed.
handleFault in interface EndpointInterceptormessageContext - contains both request and response messages, the response should contains a Faultendpoint - chosen endpoint to invoke
true to continue processing of the response interceptor chain; false to indicate
blocking of the response handler chain.
Exception
public void afterCompletion(MessageContext messageContext,
Object endpoint,
Exception ex)
throws Exception
EndpointInterceptorEndpointInterceptor.handleRequest(org.springframework.ws.context.MessageContext, java.lang.Object) method has successfully completed.
As with the EndpointInterceptor.handleResponse(org.springframework.ws.context.MessageContext, java.lang.Object) method, the method will be invoked on each interceptor in the chain in
reverse order, so the first interceptor will be the last to be invoked.
afterCompletion in interface EndpointInterceptormessageContext - contains both request and response messages, the response should contains a Faultendpoint - chosen endpoint to invokeex - exception thrown on handler execution, if any
Exception - in case of errors
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||