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 endpoint
void 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 true
Exception
- in case of errors