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
EndpointMappings that resolve qualified names as
registration keys.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class AbstractEndpointMapping
LOOKUP_KEY_PROPERTYFields inherited from class org.springframework.context.support.ApplicationObjectSupport
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final @Nullable StringgetLookupKeyForMessage(MessageContext messageContext) Returns the endpoint key for the given message context.protected ObjectReturn the value to publish in thelookup key propertyfor the given key.protected abstract @Nullable QNameresolveQName(MessageContext messageContext) Template method that resolves the qualified names from the given SOAP message.protected booleanvalidateLookupKey(String key) Validates the given endpoint key.Methods inherited from class AbstractMapBasedEndpointMapping
getEndpointInternal, initApplicationContext, lookupEndpoint, registerEndpoint, setEndpointMap, setLazyInitEndpoints, setMappings, setRegisterBeanNamesMethods inherited from class AbstractEndpointMapping
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrderMethods 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:AbstractMapBasedEndpointMappingReturns the endpoint key for the given message context. Returnsnullif a key cannot be found.- Specified by:
getLookupKeyForMessagein 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:AbstractMapBasedEndpointMappingValidates the given endpoint key. Should returntrueis the given string is valid.- Specified by:
validateLookupKeyin classAbstractMapBasedEndpointMapping
-
getLookupKeyPropertyValue
Description copied from class:AbstractMapBasedEndpointMappingReturn the value to publish in thelookup key propertyfor the given key. Subclasses can override this method to publish a richer representation of the key, such as aQName.- Overrides:
getLookupKeyPropertyValuein classAbstractMapBasedEndpointMapping- Parameters:
key- the key that the endpoint was looked up with- Returns:
- the value to publish
-