Class WsAddressingUtil

  • All Implemented Interfaces:

    
    public class WsAddressingUtil
    
                        

    Utility class for WS-Addressing related interaction.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      AttributedURIType createAttributedURIType(String uri) Shorthand method to create an AttributedURIType from a simple string.
      AttributedQNameType createAttributedQNameType(QName qName) Shorthand method to create an AttributedQNameType from a QName.
      AttributedURIType createAttributedURIType(URI uri) Shorthand method to create an AttributedURIType from an URI.
      RelatesToType createRelatesToType(String uri) Shorthand method to create an RelatesToType from a simple String.
      RelatesToType createRelatesToType(@Nullable() AttributedURIType attributedURIType) Shorthand method to create an RelatesToType from an AttributedURIType.
      Optional<String> getAddressUri(EndpointReferenceType epr) Gets the address URI of an endpoint reference.
      String getAddressUriString(AttributedURIType attributedURIType) Gets the address URI string of an AttributedURIType.
      EndpointReferenceType createEprWithAddress(String addressUri) Creates an endpoint reference given an address string.
      EndpointReferenceType createEprWithAddress(URI addressUri) Creates an endpoint reference given an address URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • createAttributedURIType

         AttributedURIType createAttributedURIType(String uri)

        Shorthand method to create an AttributedURIType from a simple string.

        Parameters:
        uri - the URI as string.
        Returns:

        an AttributedURIType instance.

      • createAttributedQNameType

         AttributedQNameType createAttributedQNameType(QName qName)

        Shorthand method to create an AttributedQNameType from a QName.

        Parameters:
        qName - the QName to add.
        Returns:

        an AttributedQNameType instance.

      • createAttributedURIType

         AttributedURIType createAttributedURIType(URI uri)

        Shorthand method to create an AttributedURIType from an URI.

        Parameters:
        uri - the URI.
        Returns:

        an AttributedURIType instance.

      • createRelatesToType

         RelatesToType createRelatesToType(String uri)

        Shorthand method to create an RelatesToType from a simple String.

        Parameters:
        uri - the URI as string.
        Returns:

        an RelatesToType instance.

      • createRelatesToType

         RelatesToType createRelatesToType(@Nullable() AttributedURIType attributedURIType)

        Shorthand method to create an RelatesToType from an AttributedURIType.

        Parameters:
        attributedURIType - the URI as AttributedURIType.
        Returns:

        an RelatesToType instance.

      • getAddressUri

         Optional<String> getAddressUri(EndpointReferenceType epr)

        Gets the address URI of an endpoint reference.

        Parameters:
        epr - the endpoint reference.
        Returns:

        the endpoint reference or empty if there was no URI available.

      • getAddressUriString

         String getAddressUriString(AttributedURIType attributedURIType)

        Gets the address URI string of an AttributedURIType.

        Parameters:
        attributedURIType - the attributed URI type where to extract the URI string.
        Returns:

        the URI or an empty string if getValue returned null.

      • createEprWithAddress

         EndpointReferenceType createEprWithAddress(String addressUri)

        Creates an endpoint reference given an address string.

        Parameters:
        addressUri - the address string of the endpoint reference.
        Returns:

        a new endpoint reference object.

      • createEprWithAddress

         EndpointReferenceType createEprWithAddress(URI addressUri)

        Creates an endpoint reference given an address URI.

        Parameters:
        addressUri - the address URI of the endpoint reference.
        Returns:

        a new endpoint reference object.