Class PayloadRootAnnotationMethodEndpointMapping
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.PayloadRootAnnotationMethodEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,EndpointMapping
public class PayloadRootAnnotationMethodEndpointMapping
extends AbstractAnnotationMethodEndpointMapping<QName>
Implementation of the
EndpointMapping interface that uses the
PayloadRoot annotation to map methods to request payload root elements.
Endpoints typically have the following form:
@Endpoint
public class MyEndpoint{
@PayloadRoot(localPart = "Request",
namespace = "http://springframework.org/spring-ws")
public Source doSomethingWithRequest() {
...
}
}
- Since:
- 1.0.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 @Nullable QNamegetLookupKeyForMessage(MessageContext messageContext) Returns the endpoint keys for the given message context.getLookupKeysForMethod(Method method) Returns the endpoint keys for the given method.static voidsetTransformerFactory(TransformerFactory transformerFactory) Override the defaultTransformerFactory.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, getLookupKeyForMethod, 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
-
PayloadRootAnnotationMethodEndpointMapping
public PayloadRootAnnotationMethodEndpointMapping()
-
-
Method Details
-
setTransformerFactory
Override the defaultTransformerFactory.- Parameters:
transformerFactory- the transformer factory to use
-
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
-
getLookupKeysForMethod
Description copied from class:AbstractMethodEndpointMappingReturns the endpoint keys for the given method. Should return an empty array if the method is not to be registered. The default delegates toAbstractMethodEndpointMapping.getLookupKeyForMethod(Method).- Overrides:
getLookupKeysForMethodin classAbstractMethodEndpointMapping<QName>- Parameters:
method- the method- Returns:
- a list of registration keys
-