public class SoapActionEndpointMapping extends AbstractMapBasedEndpointMapping implements SoapEndpointMapping
EndpointMapping interface to map from SOAPAction headers to endpoint beans.
Supports both mapping to bean instances and mapping to bean names: the latter is required for prototype handlers.
The endpointMap property is suitable for populating the endpoint map with bean references, e.g. via the map
element in XML bean definitions.
Mappings to bean names can be set via the mappings property, in a form accepted by the
java.util.Properties class, like as follows:
http://www.springframework.org/spring-ws/samples/airline/BookFlight=bookFlightEndpoint http://www.springframework.org/spring-ws/samples/airline/GetFlights=getFlightsEndpointThe syntax is SOAP_ACTION=ENDPOINT_BEAN_NAME.
This endpoint mapping does not read from the request message, and therefore is more suitable for message factories
which directly read from the transport request (such as the AxiomSoapMessageFactory with the
payloadCaching disabled).
| Constructor and Description |
|---|
SoapActionEndpointMapping() |
| 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 endpoint key for the given message context.
|
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.
|
protected boolean |
validateLookupKey(String key)
Validates the given endpoint key.
|
getEndpointInternal, initApplicationContext, lookupEndpoint, registerEndpoint, setEndpointMap, setLazyInitEndpoints, setMappings, setRegisterBeanNamesgetDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrdergetApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndpointpublic final void setActorOrRole(String actorOrRole)
SoapEndpointMappingsetActorOrRole in interface SoapEndpointMappingpublic final void setActorsOrRoles(String[] actorsOrRoles)
SoapEndpointMappingsetActorsOrRoles in interface SoapEndpointMappingpublic final void setUltimateReceiver(boolean ultimateReceiver)
SoapEndpointMappingsetUltimateReceiver in interface SoapEndpointMappingprotected 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 AbstractEndpointMappingendpoint - the endpointinterceptors - the endpoint interceptorsAbstractEndpointMapping.setInterceptors(org.springframework.ws.server.EndpointInterceptor[]),
setActorsOrRoles(String[])protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception
AbstractMapBasedEndpointMappingnull if a key cannot be found.getLookupKeyForMessage in class AbstractMapBasedEndpointMappingnullExceptionprotected boolean validateLookupKey(String key)
AbstractMapBasedEndpointMappingtrue is the given string is valid.validateLookupKey in class AbstractMapBasedEndpointMappingCopyright © 2023 VMware, Inc.. All rights reserved.