Class SoapActionAnnotationMethodEndpointMapping
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<String>
org.springframework.ws.soap.server.endpoint.mapping.SoapActionAnnotationMethodEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.core.Ordered
,EndpointMapping
,SoapEndpointMapping
public class SoapActionAnnotationMethodEndpointMapping
extends AbstractAnnotationMethodEndpointMapping<String>
implements SoapEndpointMapping
Implementation of the
EndpointMapping
interface that uses the
SoapAction
annotation to map methods to the request SOAPAction header.
Endpoints typically have the following form:
@Endpoint public class MyEndpoint{ @SoapAction("http://springframework.org/spring-ws/SoapAction") 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 final EndpointInvocationChain
createEndpointInvocationChain
(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newSoapEndpointInvocationChain
based on the given endpoint, and the set interceptors, and actors/roles.protected String
getLookupKeyForMessage
(MessageContext messageContext) Returns the endpoint keys for the given message context.protected String
getLookupKeyForMethod
(Method method) Returns the endpoint key for the given method.getLookupKeysForMethod
(Method method) Returns the endpoint keys for the given method.final void
setActorOrRole
(String actorOrRole) Sets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping.final void
setActorsOrRoles
(String[] actorsOrRoles) Sets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping.final void
setUltimateReceiver
(boolean ultimateReceiver) Indicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role.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, lookupEndpoint, registerEndpoint, registerMethods, registerMethods
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ws.server.EndpointMapping
getEndpoint
-
Constructor Details
-
SoapActionAnnotationMethodEndpointMapping
public SoapActionAnnotationMethodEndpointMapping()
-
-
Method Details
-
setActorOrRole
Description copied from interface:SoapEndpointMapping
Sets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping.- Specified by:
setActorOrRole
in interfaceSoapEndpointMapping
-
setActorsOrRoles
Description copied from interface:SoapEndpointMapping
Sets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping.- Specified by:
setActorsOrRoles
in interfaceSoapEndpointMapping
-
setUltimateReceiver
public final void setUltimateReceiver(boolean ultimateReceiver) Description copied from interface:SoapEndpointMapping
Indicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role.- Specified by:
setUltimateReceiver
in interfaceSoapEndpointMapping
-
createEndpointInvocationChain
protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newSoapEndpointInvocationChain
based on the given endpoint, and the set interceptors, and actors/roles.- Overrides:
createEndpointInvocationChain
in classAbstractEndpointMapping
- Parameters:
endpoint
- the endpointinterceptors
- the endpoint interceptors- Returns:
- the created invocation chain
- See Also:
-
getLookupKeyForMessage
Description copied from class:AbstractMethodEndpointMapping
Returns the endpoint keys for the given message context.- Specified by:
getLookupKeyForMessage
in classAbstractMethodEndpointMapping<String>
- Returns:
- the registration keys
- Throws:
Exception
-
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<String>
- Parameters:
method
- the method- Returns:
- a registration key, or
null
if the method is not to be registered - See Also:
-
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<String>
- Parameters:
method
- the method- Returns:
- a list of registration keys
-