public class SoapActionAnnotationMethodEndpointMapping extends AbstractAnnotationMethodEndpointMapping<String> implements SoapEndpointMapping
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() { ... } }
Constructor and Description |
---|
SoapActionAnnotationMethodEndpointMapping() |
Modifier and Type | Method and Description |
---|---|
protected EndpointInvocationChain |
createEndpointInvocationChain(MessageContext messageContext,
Object endpoint,
EndpointInterceptor[] interceptors)
Creates a new
SoapEndpointInvocationChain based on the given endpoint, and the set interceptors, and
actors/roles. |
protected String |
getLookupKeyForMessage(MessageContext messageContext)
Returns the the endpoint keys for the given message context.
|
protected String |
getLookupKeyForMethod(Method method)
Returns the the endpoint key for the given method.
|
protected List<String> |
getLookupKeysForMethod(Method method)
Returns the the endpoint keys for the given method.
|
void |
setActorOrRole(String actorOrRole)
Sets a single SOAP actor/actorOrRole to apply to all endpoints mapped by the delegate endpoint mapping.
|
void |
setActorsOrRoles(String[] actorsOrRoles)
Sets the array of SOAP actors/actorsOrRoles to apply to all endpoints mapped by the delegate endpoint mapping.
|
void |
setUltimateReceiver(boolean ultimateReceiver)
Indicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role.
|
getEndpointAnnotationType, initApplicationContext, setDetectEndpointsInAncestorContexts
getEndpointClass, getEndpointInternal, lookupEndpoint, registerEndpoint, registerMethods, registerMethods
getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint
public SoapActionAnnotationMethodEndpointMapping()
public final void setActorOrRole(String actorOrRole)
SoapEndpointMapping
setActorOrRole
in interface SoapEndpointMapping
public final void setActorsOrRoles(String[] actorsOrRoles)
SoapEndpointMapping
setActorsOrRoles
in interface SoapEndpointMapping
public final void setUltimateReceiver(boolean ultimateReceiver)
SoapEndpointMapping
setUltimateReceiver
in interface SoapEndpointMapping
protected final EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors)
SoapEndpointInvocationChain
based on the given endpoint, and the set interceptors, and
actors/roles.createEndpointInvocationChain
in class AbstractEndpointMapping
endpoint
- the endpointinterceptors
- the endpoint interceptorsAbstractEndpointMapping.setInterceptors(org.springframework.ws.server.EndpointInterceptor[])
,
setActorsOrRoles(String[])
protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception
AbstractMethodEndpointMapping
getLookupKeyForMessage
in class AbstractMethodEndpointMapping<String>
Exception
protected String getLookupKeyForMethod(Method method)
AbstractMethodEndpointMapping
null
if the method is not to be
registered, which is the default.getLookupKeyForMethod
in class AbstractMethodEndpointMapping<String>
method
- the methodnull
if the method is not to be registeredAbstractMethodEndpointMapping.getLookupKeysForMethod(Method)
protected List<String> getLookupKeysForMethod(Method method)
AbstractMethodEndpointMapping
AbstractMethodEndpointMapping.getLookupKeysForMethod(Method)
.getLookupKeysForMethod
in class AbstractMethodEndpointMapping<String>
method
- the method