Class AbstractAddressingVersion

java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.version.AbstractAddressingVersion
All Implemented Interfaces:
AddressingVersion
Direct Known Subclasses:
Addressing10, Addressing200408

public abstract class AbstractAddressingVersion extends TransformerObjectSupport implements AddressingVersion
Abstract base class for AddressingVersion implementations. Uses XPathExpressions to retrieve addressing information.
Since:
1.5.0
Author:
Arjen Poutsma
  • Constructor Details

    • AbstractAddressingVersion

      protected AbstractAddressingVersion()
  • Method Details

    • getMessageAddressingProperties

      public MessageAddressingProperties getMessageAddressingProperties(SoapMessage message)
      Description copied from interface: AddressingVersion
      Returns the MessageAddressingProperties for the given message.
      Specified by:
      getMessageAddressingProperties in interface AddressingVersion
      Parameters:
      message - the message to find the map for
      Returns:
      the message addressing properties
      See Also:
    • addAddressingHeaders

      public void addAddressingHeaders(SoapMessage message, MessageAddressingProperties map)
      Description copied from interface: AddressingVersion
      Adds addressing SOAP headers to the given message, using the given MessageAddressingProperties.
      Specified by:
      addAddressingHeaders in interface AddressingVersion
      Parameters:
      message - the message to add the headers to
      map - the message addressing properties
    • understands

      public final boolean understands(SoapHeaderElement headerElement)
      Description copied from interface: AddressingVersion
      Given a SoapHeaderElement, return whether or not this version understands it.
      Specified by:
      understands in interface AddressingVersion
      Parameters:
      headerElement - the header
      Returns:
      true if understood, false otherwise
    • addEndpointReference

      protected void addEndpointReference(SoapHeaderElement headerElement, EndpointReference epr)
      Adds ReplyTo, FaultTo, or From EPR to the given header Element.
    • addReferenceNodes

      protected void addReferenceNodes(Result result, List<Node> nodes)
    • addInvalidAddressingHeaderFault

      public final SoapFault addInvalidAddressingHeaderFault(SoapMessage message)
      Description copied from interface: AddressingVersion
      Adds a Invalid Addressing Header fault to the given message.
      Specified by:
      addInvalidAddressingHeaderFault in interface AddressingVersion
      See Also:
    • addMessageAddressingHeaderRequiredFault

      public final SoapFault addMessageAddressingHeaderRequiredFault(SoapMessage message)
      Description copied from interface: AddressingVersion
      Adds a Message Addressing Header Required fault to the given message.
      Specified by:
      addMessageAddressingHeaderRequiredFault in interface AddressingVersion
      See Also:
    • hasAnonymousAddress

      public final boolean hasAnonymousAddress(EndpointReference epr)
      Description copied from interface: AddressingVersion
      Indicates whether the given endpoint reference has a Anonymous address. This address is used to indicate that a message should be sent in-band.
      Specified by:
      hasAnonymousAddress in interface AddressingVersion
      See Also:
    • hasNoneAddress

      public final boolean hasNoneAddress(EndpointReference epr)
      Description copied from interface: AddressingVersion
      Indicates whether the given endpoint reference has a None address. Messages to be sent to this address will not be sent.
      Specified by:
      hasNoneAddress in interface AddressingVersion
      See Also:
    • getNamespacePrefix

      protected String getNamespacePrefix()
      Returns the prefix associated with the WS-Addressing namespace handled by this specification.
    • getNamespaceUri

      protected abstract String getNamespaceUri()
      Returns the WS-Addressing namespace handled by this specification.
    • getToName

      protected QName getToName()
      Returns the qualified name of the To addressing header.
    • getFromName

      protected QName getFromName()
      Returns the qualified name of the From addressing header.
    • getReplyToName

      protected QName getReplyToName()
      Returns the qualified name of the ReplyTo addressing header.
    • getFaultToName

      protected QName getFaultToName()
      Returns the qualified name of the FaultTo addressing header.
    • getActionName

      protected QName getActionName()
      Returns the qualified name of the Action addressing header.
    • getMessageIdName

      protected QName getMessageIdName()
      Returns the qualified name of the MessageID addressing header.
    • getRelatesToName

      protected QName getRelatesToName()
      Returns the qualified name of the RelatesTo addressing header.
    • getRelationshipTypeName

      protected QName getRelationshipTypeName()
      Returns the qualified name of the RelatesTo addressing header.
    • getReferencePropertiesName

      protected QName getReferencePropertiesName()
      Returns the qualified name of the ReferenceProperties in the endpoint reference. Returns null when reference properties are not supported by this version of the spec.
    • getReferenceParametersName

      protected QName getReferenceParametersName()
      Returns the qualified name of the ReferenceParameters in the endpoint reference. Returns null when reference parameters are not supported by this version of the spec.
    • getAddressName

      protected QName getAddressName()
      The qualified name of the Address in EndpointReference.
    • getDefaultTo

      protected abstract URI getDefaultTo()
      Returns the default To URI.
    • getDefaultReplyTo

      protected abstract EndpointReference getDefaultReplyTo(EndpointReference from)
      Returns the default ReplyTo EPR. Can be based on the From EPR, or the anonymous URI.
    • getAnonymous

      protected abstract URI getAnonymous()
      Returns the anonymous URI.
    • getNone

      protected abstract URI getNone()
      Returns the none URI, or null if the spec does not define it.
    • getMessageAddressingHeaderRequiredFaultSubcode

      protected abstract QName getMessageAddressingHeaderRequiredFaultSubcode()
      Returns the qualified name of the fault subcode that indicates that a header is missing.
    • getMessageAddressingHeaderRequiredFaultReason

      protected abstract String getMessageAddressingHeaderRequiredFaultReason()
      Returns the reason of the fault that indicates that a header is missing.
    • getInvalidAddressingHeaderFaultSubcode

      protected abstract QName getInvalidAddressingHeaderFaultSubcode()
      Returns the qualified name of the fault subcode that indicates that a header is invalid.
    • getInvalidAddressingHeaderFaultReason

      protected abstract String getInvalidAddressingHeaderFaultReason()
      Returns the reason of the fault that indicates that a header is invalid.