public interface EndpointAdapter
MessageDispatcher to be indefinitely extensible. It accesses all installed endpoints through
this interface, meaning that is does not contain code specific to any endpoint type.
This interface is not intended for application developers. It is available for those who want to develop their own message flow.
MessageDispatcher| 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? |
boolean supports(Object endpoint)
EndpointAdapter support the given endpoint?
Typical EndpointAdapters will base the decision on the endpoint type.
endpoint - endpoint object to checktrue if this EndpointAdapter supports the supplied endpointvoid invoke(MessageContext messageContext, Object endpoint) throws Exception
endpoint to handle the request.messageContext - the current message contextendpoint - the endpoint to use. This object must have previously been passed to the supports(Object) method of this interface, which must have returned trueException - in case of errorsCopyright © 2019 Pivotal Software. All rights reserved.