public class PayloadEndpointAdapter extends TransformerObjectSupport implements EndpointAdapter
PayloadEndpoint
as the endpoint for a EndpointInvocationChain
.
This adapter is registered by default by the MessageDispatcher
and SoapMessageDispatcher
.
PayloadEndpoint
,
EndpointInvocationChain
logger
Constructor and Description |
---|
PayloadEndpointAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
invoke(MessageContext messageContext,
Object endpoint)
Use the given
endpoint to handle the request. |
boolean |
supports(Object endpoint)
Does this
EndpointAdapter support the given endpoint ? |
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public boolean supports(Object endpoint)
EndpointAdapter
EndpointAdapter
support the given endpoint
?
Typical EndpointAdapters
will base the decision on the endpoint type.
supports
in interface EndpointAdapter
endpoint
- endpoint object to checktrue
if this EndpointAdapter
supports the supplied endpoint
public void invoke(MessageContext messageContext, Object endpoint) throws Exception
EndpointAdapter
endpoint
to handle the request.invoke
in interface EndpointAdapter
messageContext
- the current message contextendpoint
- the endpoint to use. This object must have previously been passed to the EndpointAdapter.supports(Object)
method of this interface, which must have returned true
Exception
- in case of errorsCopyright © 2020 Pivotal Software. All rights reserved.