Class W3CEndpointReference

java.lang.Object
jakarta.xml.ws.EndpointReference
jakarta.xml.ws.wsaddressing.W3CEndpointReference

public final class W3CEndpointReference extends EndpointReference
This class represents a W3C Addressing EndpointReferece which is a remote reference to a web service endpoint that supports the W3C WS-Addressing 1.0 - Core Recommendation.

Developers should use this class in their SEIs if they want to pass/return endpoint references that represent the W3C WS-Addressing recommendation.

Jakarta XML Binding will use the Jakarta XML Binding annotations and bind this class to XML infoset that is consistent with that defined by WS-Addressing. See WS-Addressing for more information on WS-Addressing EndpointReferences.

Since:
1.6, JAX-WS 2.1
  • Field Details

  • Constructor Details

    • W3CEndpointReference

      private W3CEndpointReference()
      Default constructor.
    • W3CEndpointReference

      public W3CEndpointReference(Source source)
      Creates an EPR from infoset representation
      Parameters:
      source - A source object containing valid XmlInfoset instance consistent with the W3C WS-Addressing Core recommendation.
      Throws:
      WebServiceException - If the source does NOT contain a valid W3C WS-Addressing EndpointReference.
      NullPointerException - If the null source value is given
  • Method Details

    • getAddressUri

      String getAddressUri()
      Returns the address of the W3CEndpointReference instance's wsa:Address element.
      Returns:
      The address of the wsa:Address.
    • getAddressAttributes

      Map<QName,String> getAddressAttributes()
      Returns a list of extension attributes of the W3CEndpointReference instance's wsa:Address element.
      Returns:
      The extension attributes of the wsa:Address element.
    • getReferenceParameters

      List<Element> getReferenceParameters()
      Returns a list of the referenceParameters of the W3CEndpointReference instance's wsa:ReferenceParameters element.
      Returns:
      The referenceParameters of the wsa:ReferenceParameters element.
    • getMetadata

      List<Element> getMetadata()
      Returns the list of metadataElements of the W3CEndpointReference instance's of the wsa:Metadata element.
      Returns:
      The metadataElements of the wsa:Metadata element.
    • getAttributes

      Map<QName,String> getAttributes()
      Returns a list of extension attributes of the W3CEndpointReference instance's wsa:EndpointReference element.
      Returns:
      The extension attributes of the W3CEndpointReference.
    • getElements

      List<Element> getElements()
      Returns a list of an extension elements of the W3CEndpointReference instance's wsa:EndpointReference element.
      Returns:
      Extension elements of the W3CEndpointReference instance.
    • writeTo

      public void writeTo(Result result)
      Description copied from class: EndpointReference
      write this EndpointReference to the specified infoset format
      Specified by:
      writeTo in class EndpointReference
      Parameters:
      result - for writing infoset
    • getW3CJaxbContext

      private static jakarta.xml.bind.JAXBContext getW3CJaxbContext()