Spring Web Services Framework

org.springframework.ws.server.endpoint.adapter
Class AbstractMethodEndpointAdapter

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter
All Implemented Interfaces:
EndpointAdapter
Direct Known Subclasses:
DefaultMethodEndpointAdapter, MarshallingMethodEndpointAdapter, MessageMethodEndpointAdapter, PayloadMethodEndpointAdapter, XPathParamAnnotationMethodEndpointAdapter

public abstract class AbstractMethodEndpointAdapter
extends TransformerObjectSupport
implements EndpointAdapter

Abstract base class for EndpointAdapter implementations that support MethodEndpoints. Contains template methods for handling these method endpoints.

Since:
1.0.0
Author:
Arjen Poutsma

Field Summary
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Constructor Summary
AbstractMethodEndpointAdapter()
           
 
Method Summary
 void invoke(MessageContext messageContext, Object endpoint)
          Delegates to invokeInternal(org.springframework.ws.context.MessageContext,MethodEndpoint).
protected abstract  void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint)
          Use the given method endpoint to handle the request.
 boolean supports(Object endpoint)
          Delegates to supportsInternal(org.springframework.ws.server.endpoint.MethodEndpoint).
protected abstract  boolean supportsInternal(MethodEndpoint methodEndpoint)
          Given a method endpoint, return whether or not this adapter can support it.
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMethodEndpointAdapter

public AbstractMethodEndpointAdapter()
Method Detail

supports

public final boolean supports(Object endpoint)
Delegates to supportsInternal(org.springframework.ws.server.endpoint.MethodEndpoint).

Specified by:
supports in interface EndpointAdapter
Parameters:
endpoint - endpoint object to check
Returns:
whether or not this adapter can adapt the given endpoint

invoke

public final void invoke(MessageContext messageContext,
                         Object endpoint)
                  throws Exception
Delegates to invokeInternal(org.springframework.ws.context.MessageContext,MethodEndpoint).

Specified by:
invoke in interface EndpointAdapter
Parameters:
messageContext - the current message context
endpoint - the endpoint to use. This object must have previously been passed to the supportsInternal method of this interface, which must have returned true
Throws:
Exception - in case of errors

supportsInternal

protected abstract boolean supportsInternal(MethodEndpoint methodEndpoint)
Given a method endpoint, return whether or not this adapter can support it.

Parameters:
methodEndpoint - method endpoint to check
Returns:
whether or not this adapter can adapt the given method

invokeInternal

protected abstract void invokeInternal(MessageContext messageContext,
                                       MethodEndpoint methodEndpoint)
                                throws Exception
Use the given method endpoint to handle the request.

Parameters:
messageContext - the current message context
methodEndpoint - the method endpoint to use
Throws:
Exception - in case of errors

Spring Web Services Framework

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