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
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidinvoke(MessageContext messageContext, Object endpoint) protected abstract voidinvokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) Use the given method endpoint to handle the request.final booleanprotected abstract booleansupportsInternal(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:
supportsin interfaceEndpointAdapter- Parameters:
endpoint- endpoint object to check- Returns:
- whether or not this adapter can adapt the given endpoint
-
invoke
- Specified by:
invokein interfaceEndpointAdapter- Parameters:
messageContext- the current message contextendpoint- the endpoint to use. This object must have previously been passed to thesupportsInternalmethod 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
-