org.springframework.ws.server.endpoint.adapter
Class AbstractMethodEndpointAdapter
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractMethodEndpointAdapter
public AbstractMethodEndpointAdapter()
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 contextendpoint - 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 contextmethodEndpoint - the method endpoint to use
- Throws:
Exception - in case of errors
Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.