Interface that must be implemented for each endpoint type to handle a message request. This interface is used to
allow the 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.
author: Arjen Poutsma See Also:MessageDispatcher since: 1.0.0
Method Summary
void
invoke(MessageContext messageContext, Object endpoint) Use the given endpoint to handle the request.
Parameters: messageContext - the current message context Parameters: endpoint - the endpoint to use.
boolean
supports(Object endpoint) Does this EndpointAdapter support the given endpoint?
Typical EndpointAdapters will base the decision on the endpoint type.
Use the given endpoint to handle the request.
Parameters: messageContext - the current message context Parameters: endpoint - 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 throws: Exception - in case of errors
Does this EndpointAdapter support the given endpoint?
Typical EndpointAdapters will base the decision on the endpoint type.
Parameters: endpoint - endpoint object to check true if this EndpointAdapter supports the supplied endpoint