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
- Author:
- Arjen Poutsma
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected QName
getLookupKeyForMessage
(MessageContext messageContext) Returns the endpoint keys for the given message context.getLookupKeysForMethod
(Method method) Returns the endpoint keys for the given method.static void
setTransformerFactory
(TransformerFactory transformerFactory) Override the defaultTransformerFactory
.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, getLookupKeyForMethod, 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
-
PayloadRootAnnotationMethodEndpointMapping
public PayloadRootAnnotationMethodEndpointMapping()
-
-
Method Details
-
setTransformerFactory
Override the defaultTransformerFactory
.- Parameters:
transformerFactory
-
-
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
-
getLookupKeysForMethod
Description copied from class:AbstractMethodEndpointMapping
Returns the endpoint keys for the given method. Should return an empty array if the method is not to be registered. The default delegates toAbstractMethodEndpointMapping.getLookupKeysForMethod(Method)
.- Overrides:
getLookupKeysForMethod
in classAbstractMethodEndpointMapping<QName>
- Parameters:
method
- the method- Returns:
- a list of registration keys
-