Class EndpointInterceptorAdapter
java.lang.Object
org.springframework.ws.server.endpoint.interceptor.EndpointInterceptorAdapter
- All Implemented Interfaces:
EndpointInterceptor
Default implementation of the
EndpointInterceptor
interface, for simplified implementation of
pre-only/post-only interceptors.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
Logger available to subclasses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterCompletion
(MessageContext messageContext, Object endpoint, Exception ex) Does nothing by default.boolean
handleFault
(MessageContext messageContext, Object endpoint) Returnstrue
.boolean
handleRequest
(MessageContext messageContext, Object endpoint) Returnstrue
.boolean
handleResponse
(MessageContext messageContext, Object endpoint) Returnstrue
.boolean
understands
(Element header) Returnsfalse
.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses
-
-
Constructor Details
-
EndpointInterceptorAdapter
public EndpointInterceptorAdapter()
-
-
Method Details
-
understands
Returnsfalse
. -
handleRequest
Returnstrue
.- Specified by:
handleRequest
in interfaceEndpointInterceptor
- Parameters:
messageContext
- contains the incoming request messageendpoint
- chosen endpoint to invoke- Returns:
true
- Throws:
Exception
- in case of errors- See Also:
-
handleResponse
Returnstrue
.- Specified by:
handleResponse
in interfaceEndpointInterceptor
- Parameters:
messageContext
- contains both request and response messagesendpoint
- chosen endpoint to invoke- Returns:
true
- Throws:
Exception
- in case of errors- See Also:
-
handleFault
Returnstrue
.- Specified by:
handleFault
in interfaceEndpointInterceptor
- Parameters:
messageContext
- contains both request and response messages, the response should contains a Faultendpoint
- chosen endpoint to invoke- Returns:
true
- Throws:
Exception
-
afterCompletion
public void afterCompletion(MessageContext messageContext, Object endpoint, Exception ex) throws Exception Does nothing by default.- Specified by:
afterCompletion
in interfaceEndpointInterceptor
- Parameters:
messageContext
- contains both request and response messages, the response should contains a Faultendpoint
- chosen endpoint to invokeex
- exception thrown on handler execution, if any- Throws:
Exception
- in case of errors
-