Class XmlRootElementEndpointMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping<T>
org.springframework.ws.server.endpoint.mapping.AbstractAnnotationMethodEndpointMapping<QName>
org.springframework.ws.server.endpoint.mapping.jaxb.XmlRootElementEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,EndpointMapping
Implementation of the
EndpointMapping interface that uses the JAXB2 XmlRootElement annotation to map
methods to request payload root elements.
Endpoints typically have the following form:
@Endpoint
public class MyEndpoint{
public void doSomethingWithRequest(@RequestBody MyRootElement rootElement) {
...
}
} where MyRootElement is annotated with @XmlRootElement:
@XmlRootElement(name = "myRoot", namespace = "http://springframework.org/spring-ws")
public class MyRootElement {
...
}- Since:
- 2.0
-
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 QNamegetLookupKeyForMessage(MessageContext messageContext) Returns the endpoint keys for the given message context.protected QNamegetLookupKeyForMethod(Method method) Returns the endpoint key for the given method.voidsetTransformerHelper(TransformerHelper transformerHelper) Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractAnnotationMethodEndpointMapping
getEndpointAnnotationType, initApplicationContext, setDetectEndpointsInAncestorContextsMethods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
getEndpointClass, getEndpointInternal, getLookupKeysForMethod, lookupEndpoint, registerEndpoint, registerMethods, registerMethodsMethods 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
-
XmlRootElementEndpointMapping
public XmlRootElementEndpointMapping()
-
-
Method Details
-
setTransformerHelper
-
getLookupKeyForMethod
Description copied from class:AbstractMethodEndpointMappingReturns the endpoint key for the given method. Returnsnullif the method is not to be registered, which is the default.- Overrides:
getLookupKeyForMethodin classAbstractMethodEndpointMapping<QName>- Parameters:
method- the method- Returns:
- a registration key, or
nullif the method is not to be registered - See Also:
-
getLookupKeyForMessage
Description copied from class:AbstractMethodEndpointMappingReturns the endpoint keys for the given message context.- Specified by:
getLookupKeyForMessagein classAbstractMethodEndpointMapping<QName>- Returns:
- the registration keys
- Throws:
Exception
-