Class PayloadRootQNameEndpointMapping
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
org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,EndpointMapping
Implementation of the
EndpointMapping interface to map from the qualified name
of the request payload root element. Supports both mapping to bean instances and
mapping to bean names: the latter is required for prototype endpoints.
The endpointMap property is suitable for populating the endpoint map with bean
references, e.g. via the map element in XML bean definitions.
Mappings to bean names can be set via the mappings property, in a form accepted
by the java.util.Properties class, like as follows:
{http://www.springframework.org/spring-ws/samples/airline/schemas}BookFlight=bookFlightEndpoint
{http://www.springframework.org/spring-ws/samples/airline/schemas}GetFlights=getFlightsEndpoint
The syntax is QNAME=ENDPOINT_BEAN_NAME. Qualified names are parsed using the syntax
described in QNameEditor.- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields 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 QNameresolveQName(MessageContext messageContext) Template method that resolves the qualified names from the given SOAP message.static voidsetTransformerFactory(TransformerFactory transformerFactory) Override the defaultTransformerFactory.Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping
getLookupKeyForMessage, validateLookupKeyMethods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping
getEndpointInternal, initApplicationContext, lookupEndpoint, registerEndpoint, setEndpointMap, setLazyInitEndpoints, setMappings, setRegisterBeanNamesMethods inherited from class org.springframework.ws.server.endpoint.mapping.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
-
PayloadRootQNameEndpointMapping
public PayloadRootQNameEndpointMapping()
-
-
Method Details
-
setTransformerFactory
Override the defaultTransformerFactory.- Parameters:
transformerFactory- the transformer factory to use
-
resolveQName
Description copied from class:AbstractQNameEndpointMappingTemplate method that resolves the qualified names from the given SOAP message.- Specified by:
resolveQNamein classAbstractQNameEndpointMapping- Returns:
- an array of qualified names that serve as registration keys
- Throws:
TransformerException
-