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
 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)
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

Spring Web Services Framework

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