Class DelegatingSoapEndpointMapping
java.lang.Object
org.springframework.ws.soap.server.endpoint.mapping.DelegatingSoapEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,EndpointMapping,SoapEndpointMapping
public class DelegatingSoapEndpointMapping
extends Object
implements org.springframework.beans.factory.InitializingBean, SoapEndpointMapping
EndpointMapping implement that adds SOAP actors or roles to a delegate
endpoint. Delegates to another EndpointMapping, set by delegate, and
adds the actors or roles specified by actorsOrRoles.
This endpoint mapping makes it possible to set actors/roles on a specific endpoint, without making the all endpoint mappings depend on SOAP-specific functionality. For normal use, setting an actor or role on an endpoint is not required, the default 'next' role is sufficient.
It is only in a scenario when a certain endpoint act as a SOAP intermediary for another endpoint, as described in the SOAP specificication, this mapping is useful.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetEndpoint(MessageContext messageContext) Creates a newSoapEndpointInvocationChainbased on the delegate endpoint, the delegate interceptors, and set actors/roles.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.voidsetDelegate(EndpointMapping delegate) Sets the delegateEndpointMappingto resolve the endpoint with.final voidsetUltimateReceiver(boolean ultimateReceiver) Indicates whether this the endpoint fulfills the SOAP 1.2 Ultimate Receiver role.
-
Constructor Details
-
DelegatingSoapEndpointMapping
public DelegatingSoapEndpointMapping()
-
-
Method Details
-
setDelegate
Sets the delegateEndpointMappingto resolve the endpoint with. -
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
-
getEndpoint
Creates a newSoapEndpointInvocationChainbased on the delegate endpoint, the delegate interceptors, and set actors/roles.- Specified by:
getEndpointin interfaceEndpointMapping- Returns:
- a HandlerExecutionChain instance containing endpoint object and any
interceptors, or
nullif no mapping is found - Throws:
Exception- if there is an internal error- See Also:
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-