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
logger
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable QName
getLookupKeyForMessage
(MessageContext messageContext) Returns the endpoint keys for the given message context.protected @Nullable QName
getLookupKeyForMethod
(Method method) Returns the endpoint key for the given method.void
setTransformerHelper
(TransformerHelper transformerHelper) Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractAnnotationMethodEndpointMapping
getEndpointAnnotationType, initApplicationContext, setDetectEndpointsInAncestorContexts
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
getEndpointClass, getEndpointInternal, getLookupKeysForMethod, lookupEndpoint, registerEndpoint, registerMethods, registerMethods
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
-
XmlRootElementEndpointMapping
public XmlRootElementEndpointMapping()
-
-
Method Details
-
setTransformerHelper
-
getLookupKeyForMethod
Description copied from class:AbstractMethodEndpointMapping
Returns the endpoint key for the given method. Returnsnull
if the method is not to be registered, which is the default.- Overrides:
getLookupKeyForMethod
in classAbstractMethodEndpointMapping<QName>
- Parameters:
method
- the method- Returns:
- a registration key, or
null
if the method is not to be registered - See Also:
-
getLookupKeyForMessage
Description copied from class:AbstractMethodEndpointMapping
Returns the endpoint keys for the given message context.- Specified by:
getLookupKeyForMessage
in classAbstractMethodEndpointMapping<QName>
- Returns:
- the registration keys
- Throws:
Exception
-