public abstract class AbstractEndpointMapping extends org.springframework.context.support.ApplicationObjectSupport implements EndpointMapping, org.springframework.core.Ordered
getEndpointInternal(org.springframework.ws.context.MessageContext),
EndpointInterceptor| Constructor and Description |
|---|
AbstractEndpointMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected EndpointInvocationChain |
createEndpointInvocationChain(MessageContext messageContext,
Object endpoint,
EndpointInterceptor[] interceptors)
Creates a new
EndpointInvocationChain based on the given message context, endpoint, and
interceptors. |
protected Object |
getDefaultEndpoint()
Returns the default endpoint for this endpoint mapping.
|
EndpointInvocationChain |
getEndpoint(MessageContext messageContext)
Look up an endpoint for the given message context, falling back to the default endpoint if no specific one is
found.
|
protected abstract Object |
getEndpointInternal(MessageContext messageContext)
Lookup an endpoint for the given request, returning
null if no specific one is found. |
EndpointInterceptor[] |
getInterceptors()
Returns the endpoint interceptors to apply to all endpoints mapped by this endpoint mapping.
|
int |
getOrder() |
protected void |
initApplicationContext()
Initializes the interceptors.
|
protected void |
initInterceptors()
Initialize the specified interceptors, adapting them where necessary.
|
protected Object |
resolveStringEndpoint(String endpointName)
Resolves an endpoint string.
|
void |
setDefaultEndpoint(Object defaultEndpoint)
Sets the default endpoint for this endpoint mapping.
|
void |
setInterceptors(EndpointInterceptor[] interceptors)
Sets the endpoint interceptors to apply to all endpoints mapped by this endpoint mapping.
|
void |
setOrder(int order)
Specify the order value for this mapping.
|
public EndpointInterceptor[] getInterceptors()
null if nonepublic final void setInterceptors(EndpointInterceptor[] interceptors)
interceptors - array of endpoint interceptors, or null if nonepublic final int getOrder()
getOrder in interface org.springframework.core.Orderedpublic final void setOrder(int order)
Default value is Integer.MAX_VALUE, meaning that it's non-ordered.
Ordered.getOrder()protected void initApplicationContext()
throws org.springframework.beans.BeansException
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupportorg.springframework.beans.BeansExceptioninitInterceptors()protected void initInterceptors()
public final EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception
getEndpoint in interface EndpointMappingException - if there is an internal errorgetEndpointInternal(org.springframework.ws.context.MessageContext)protected EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors)
EndpointInvocationChain based on the given message context, endpoint, and
interceptors. Default implementation creates a simple EndpointInvocationChain based on the set
interceptors.endpoint - the endpointinterceptors - the endpoint interceptorssetInterceptors(org.springframework.ws.server.EndpointInterceptor[])protected final Object getDefaultEndpoint()
public final void setDefaultEndpoint(Object defaultEndpoint)
Default is null, indicating no default endpoint.
defaultEndpoint - the default endpoint, or null if noneprotected Object resolveStringEndpoint(String endpointName)
endpointName - the endpoint namenull if the name could not be resolvedprotected abstract Object getEndpointInternal(MessageContext messageContext) throws Exception
null if no specific one is found. This template
method is called by getEndpoint, a null return value will lead to the default handler, if one is
set.
The returned endpoint can be a string, in which case it is resolved as a bean name. Also, it can take the form
beanName#method, in which case the method is resolved.
Exception - if there is an errorCopyright © 2019 Pivotal Software. All rights reserved.