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
-
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 final EndpointInvocationChaincreateEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newSoapEndpointInvocationChainbased on the given endpoint, and the set interceptors, and actors/roles.protected StringgetLookupKeyForMessage(MessageContext messageContext) Returns the endpoint keys for the given message context.protected StringgetLookupKeyForMethod(Method method) Returns the endpoint key for the given method.getLookupKeysForMethod(Method method) Returns the endpoint keys for the given method.final voidsetActorOrRole(String actorOrRole) Sets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping.final voidsetActorsOrRoles(String[] actorsOrRoles) Sets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping.final voidsetUltimateReceiver(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, setDetectEndpointsInAncestorContextsMethods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
getEndpointClass, getEndpointInternal, lookupEndpoint, registerEndpoint, registerMethods, registerMethodsMethods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrderMethods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ws.server.EndpointMapping
getEndpoint
-
Constructor Details
-
SoapActionAnnotationMethodEndpointMapping
public SoapActionAnnotationMethodEndpointMapping()
-
-
Method Details
-
setActorOrRole
Description copied from interface:SoapEndpointMappingSets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping.- Specified by:
setActorOrRolein interfaceSoapEndpointMapping
-
setActorsOrRoles
Description copied from interface:SoapEndpointMappingSets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping.- Specified by:
setActorsOrRolesin interfaceSoapEndpointMapping
-
setUltimateReceiver
public final void setUltimateReceiver(boolean ultimateReceiver) Description copied from interface:SoapEndpointMappingIndicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role.- Specified by:
setUltimateReceiverin interfaceSoapEndpointMapping
-
createEndpointInvocationChain
protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors) Creates a newSoapEndpointInvocationChainbased on the given endpoint, and the set interceptors, and actors/roles.- Overrides:
createEndpointInvocationChainin classAbstractEndpointMapping- Parameters:
endpoint- the endpointinterceptors- the endpoint interceptors- Returns:
- the created invocation chain
- See Also:
-
getLookupKeyForMessage
Description copied from class:AbstractMethodEndpointMappingReturns the endpoint keys for the given message context.- Specified by:
getLookupKeyForMessagein classAbstractMethodEndpointMapping<String>- Returns:
- the registration keys
- Throws:
Exception
-
getLookupKeyForMethod
Description copied from class:AbstractMethodEndpointMappingReturns the endpoint key for the given method. Returnsnullif the method is not to be registered, which is the default.- Overrides:
getLookupKeyForMethodin classAbstractMethodEndpointMapping<String>- Parameters:
method- the method- Returns:
- a registration key, or
nullif the method is not to be registered - See Also:
-
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<String>- Parameters:
method- the method- Returns:
- a list of registration keys
-