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
Author:
Arjen Poutsma
See Also:
  • Constructor Details

    • DelegatingSoapEndpointMapping

      public DelegatingSoapEndpointMapping()
  • Method Details

    • setDelegate

      public void setDelegate(EndpointMapping delegate)
      Sets the delegate EndpointMapping to resolve the endpoint with.
    • setActorOrRole

      public final void setActorOrRole(String actorOrRole)
      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 interface SoapEndpointMapping
    • setActorsOrRoles

      public final void setActorsOrRoles(String[] actorsOrRoles)
      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 interface SoapEndpointMapping
    • 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 interface SoapEndpointMapping
    • getEndpoint

      public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception
      Creates a new SoapEndpointInvocationChain based on the delegate endpoint, the delegate interceptors, and set actors/roles.
      Specified by:
      getEndpoint in interface EndpointMapping
      Returns:
      a HandlerExecutionChain instance containing endpoint object and any interceptors, or null if no mapping is found
      Throws:
      Exception - if there is an internal error
      See Also:
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception