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 MethodEndpoint
s. 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
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
invoke
(MessageContext messageContext, Object endpoint) protected abstract void
invokeInternal
(MessageContext messageContext, MethodEndpoint methodEndpoint) Use the given method endpoint to handle the request.final boolean
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
-
Constructor Details
-
AbstractMethodEndpointAdapter
public AbstractMethodEndpointAdapter()
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceEndpointAdapter
- Parameters:
endpoint
- endpoint object to check- Returns:
- whether or not this adapter can adapt the given endpoint
-
invoke
- Specified by:
invoke
in interfaceEndpointAdapter
- Parameters:
messageContext
- the current message contextendpoint
- the endpoint to use. This object must have previously been passed to thesupportsInternal
method of this interface, which must have returnedtrue
- Throws:
Exception
- in case of errors
-
supportsInternal
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
-