public class XmlRootElementEndpointMapping extends AbstractAnnotationMethodEndpointMapping<QName>
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 { ... }
Constructor and Description |
---|
XmlRootElementEndpointMapping() |
Modifier and Type | Method and Description |
---|---|
protected QName |
getLookupKeyForMessage(MessageContext messageContext)
Returns the endpoint keys for the given message context.
|
protected QName |
getLookupKeyForMethod(Method method)
Returns the endpoint key for the given method.
|
void |
setTransformerHelper(TransformerHelper transformerHelper) |
getEndpointAnnotationType, initApplicationContext, setDetectEndpointsInAncestorContexts
getEndpointClass, getEndpointInternal, getLookupKeysForMethod, lookupEndpoint, registerEndpoint, registerMethods, registerMethods
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
public void setTransformerHelper(TransformerHelper transformerHelper)
protected QName getLookupKeyForMethod(Method method)
AbstractMethodEndpointMapping
null
if the method is not to be
registered, which is the default.getLookupKeyForMethod
in class AbstractMethodEndpointMapping<QName>
method
- the methodnull
if the method is not to be registeredAbstractMethodEndpointMapping.getLookupKeysForMethod(Method)
protected QName getLookupKeyForMessage(MessageContext messageContext) throws Exception
AbstractMethodEndpointMapping
getLookupKeyForMessage
in class AbstractMethodEndpointMapping<QName>
Exception
Copyright © 2020 Pivotal Software. All rights reserved.