public abstract class AbstractMethodEndpointAdapter extends TransformerObjectSupport implements EndpointAdapter
EndpointAdapter
implementations that support MethodEndpoint
s. 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, transform
public final boolean supports(Object endpoint)
supports
in interface EndpointAdapter
endpoint
- endpoint object to checkpublic final void invoke(MessageContext messageContext, Object endpoint) throws Exception
invoke
in interface EndpointAdapter
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
Exception
- 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 errorsCopyright © 2018 Pivotal Software. All rights reserved.