|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.context.support.ApplicationObjectSupport org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
public abstract class AbstractEndpointMapping
Abstract base class for EndpointMapping implementations. Supports a default endpoint, and endpoint interceptors.
getEndpointInternal(org.springframework.ws.context.MessageContext)
,
EndpointInterceptor
Field Summary |
---|
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
logger |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
AbstractEndpointMapping()
|
Method Summary | |
---|---|
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 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. |
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
---|
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractEndpointMapping()
Method Detail |
---|
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 Ordered
public final void setOrder(int order)
Integer.MAX_VALUE
, meaning that it's non-ordered.
Ordered.getOrder()
protected void initApplicationContext() throws BeansException
initApplicationContext
in class ApplicationObjectSupport
BeansException
initInterceptors()
protected void initInterceptors()
setInterceptors(org.springframework.ws.server.EndpointInterceptor[])
public final EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception
getEndpoint
in interface EndpointMapping
Exception
- 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 interceptors
setInterceptors(org.springframework.ws.server.EndpointInterceptor[])
protected final Object getDefaultEndpoint()
public final void setDefaultEndpoint(Object defaultEndpoint)
null
, indicating no default endpoint.
defaultEndpoint
- the default endpoint, or null if noneprotected Object resolveStringEndpoint(String endpointName)
endpointName
- the endpoint name
null
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 error
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |