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, setDetectEndpointsInAncestorContextsgetEndpointClass, getEndpointInternal, getLookupKeysForMethod, lookupEndpoint, registerEndpoint, registerMethods, registerMethodscreateEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrderpublic void setTransformerHelper(TransformerHelper transformerHelper)
protected QName getLookupKeyForMethod(Method method)
AbstractMethodEndpointMappingnull 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
AbstractMethodEndpointMappinggetLookupKeyForMessage in class AbstractMethodEndpointMapping<QName>ExceptionCopyright © 2023 VMware, Inc.. All rights reserved.