Class WsAddressingUtil


  • public class WsAddressingUtil
    extends Object
    Utility class for WS-Addressing related interaction.
    • Method Detail

      • createRelatesToType

        public 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

        public Optional<String> getAddressUri​(EndpointReferenceType epr)
        Gets the address URI of an endpoint reference.
        Parameters:
        epr - the endpoint reference.
        Returns:
        the endpoint reference or Optional.empty() if there was no URI available.
      • createEprWithAddress

        public 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

        public 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.