public abstract class AbstractMethodEndpointAdapter extends TransformerObjectSupport implements EndpointAdapter
EndpointAdapter implementations that support MethodEndpoints. Contains
template methods for handling these method endpoints.logger| Constructor and Description |
|---|
AbstractMethodEndpointAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(MessageContext messageContext,
Object endpoint)
|
protected abstract void |
invokeInternal(MessageContext messageContext,
MethodEndpoint methodEndpoint)
Use the given method endpoint to handle the request.
|
boolean |
supports(Object endpoint)
|
protected abstract boolean |
supportsInternal(MethodEndpoint methodEndpoint)
Given a method endpoint, return whether or not this adapter can support it.
|
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic final boolean supports(Object endpoint)
supports in interface EndpointAdapterendpoint - endpoint object to checkpublic final void invoke(MessageContext messageContext, Object endpoint) throws Exception
invoke in interface EndpointAdaptermessageContext - 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
trueException - in case of errorsprotected abstract boolean supportsInternal(MethodEndpoint methodEndpoint)
methodEndpoint - method endpoint to checkprotected abstract void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws Exception
messageContext - the current message contextmethodEndpoint - the method endpoint to useException - in case of errors