Spring Web Services Framework

org.springframework.ws.server.endpoint.interceptor
Class EndpointInterceptorAdapter

java.lang.Object
  extended by org.springframework.ws.server.endpoint.interceptor.EndpointInterceptorAdapter
All Implemented Interfaces:
EndpointInterceptor

public class EndpointInterceptorAdapter
extends Object
implements 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
protected  Log logger
          Logger available to subclasses
 
Constructor Summary
EndpointInterceptorAdapter()
           
 
Method Summary
 void afterCompletion(MessageContext messageContext, Object endpoint, Exception ex)
          Does nothing by default.
 boolean handleFault(MessageContext messageContext, Object endpoint)
          Returns true.
 boolean handleRequest(MessageContext messageContext, Object endpoint)
          Returns true.
 boolean handleResponse(MessageContext messageContext, Object endpoint)
          Returns true.
 boolean understands(Element header)
          Returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Logger available to subclasses

Constructor Detail

EndpointInterceptorAdapter

public EndpointInterceptorAdapter()
Method Detail

understands

public boolean understands(Element header)
Returns false.


handleRequest

public boolean handleRequest(MessageContext messageContext,
                             Object endpoint)
                      throws Exception
Returns true.

Specified by:
handleRequest in interface EndpointInterceptor
Parameters:
messageContext - contains the incoming request message
endpoint - chosen endpoint to invoke
Returns:
true
Throws:
Exception - in case of errors
See Also:
MessageContext.getRequest()

handleResponse

public boolean handleResponse(MessageContext messageContext,
                              Object endpoint)
                       throws Exception
Returns true.

Specified by:
handleResponse in interface EndpointInterceptor
Parameters:
messageContext - contains both request and response messages
endpoint - chosen endpoint to invoke
Returns:
true
Throws:
Exception - in case of errors
See Also:
MessageContext.getRequest(), MessageContext.hasResponse(), MessageContext.getResponse()

handleFault

public boolean handleFault(MessageContext messageContext,
                           Object endpoint)
                    throws Exception
Returns true.

Specified by:
handleFault in interface EndpointInterceptor
Parameters:
messageContext - contains both request and response messages, the response should contains a Fault
endpoint - 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 interface EndpointInterceptor
Parameters:
messageContext - contains both request and response messages, the response should contains a Fault
endpoint - chosen endpoint to invoke
ex - exception thrown on handler execution, if any
Throws:
Exception - in case of errors

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.