public interface EndpointMapping
This class can be implemented by application developers, although this is not always necessary, as
PayloadRootQNameEndpointMapping
and SoapActionEndpointMapping
are included.
HandlerMapping implementations can support mapped interceptors but do not have to. An endpoint will always be wrapped
in a EndpointExecutionChain
instance, optionally accompanied by some EndpointInterceptor
instances. The MessageDispacher
will first call each EndpointInterceptor
's
handlerRequest
method in the given order, finally invoking the endpoint itself if all
handlerRequest
methods have returned true
.
AbstractEndpointMapping
,
PayloadRootQNameEndpointMapping
,
SoapActionEndpointMapping
Modifier and Type | Method and Description |
---|---|
EndpointInvocationChain |
getEndpoint(MessageContext messageContext)
Returns an endpoint and any interceptors for this message context.
|
EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception
The returned EndpointExecutionChain
contains an endpoint Object, rather than even a tag interface,
so that endpoints are not constrained in any way. For example, a EndpointAdapter
could be written to
allow another framework's endpoint objects to be used.
Returns null
if no match was found. This is by design. The MessageDispatcher
will query
all registered EndpointMapping
beans to find a match, and only decide there is an error if none can
find an endpoint.
null
if
no mapping is foundException
- if there is an internal errorCopyright © 2020 Pivotal Software. All rights reserved.