Class AbstractQNameEndpointMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.core.Ordered
,EndpointMapping
- Direct Known Subclasses:
PayloadRootQNameEndpointMapping
Abstract base class for
EndpointMapping
s that resolve qualified names as
registration keys.- Since:
- 1.0.0
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final @Nullable String
getLookupKeyForMessage
(MessageContext messageContext) Returns the endpoint key for the given message context.protected abstract @Nullable QName
resolveQName
(MessageContext messageContext) Template method that resolves the qualified names from the given SOAP message.protected boolean
validateLookupKey
(String key) Validates the given endpoint key.Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
getEndpointInternal, initApplicationContext, lookupEndpoint, registerEndpoint, setEndpointMap, setLazyInitEndpoints, setMappings, setRegisterBeanNames
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
-
Constructor Details
-
AbstractQNameEndpointMapping
public AbstractQNameEndpointMapping()
-
-
Method Details
-
getLookupKeyForMessage
protected final @Nullable String getLookupKeyForMessage(MessageContext messageContext) throws Exception Description copied from class:AbstractMapBasedEndpointMapping
Returns the endpoint key for the given message context. Returnsnull
if a key cannot be found.- Specified by:
getLookupKeyForMessage
in classAbstractMapBasedEndpointMapping
- Returns:
- the registration key; or
null
- Throws:
Exception
-
resolveQName
Template method that resolves the qualified names from the given SOAP message.- Returns:
- an array of qualified names that serve as registration keys
- Throws:
Exception
-
validateLookupKey
Description copied from class:AbstractMapBasedEndpointMapping
Validates the given endpoint key. Should returntrue
is the given string is valid.- Specified by:
validateLookupKey
in classAbstractMapBasedEndpointMapping
-