- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classW3CEndpointReference.Addressprivate static classW3CEndpointReference.Elements
-
Field Summary
Fields Modifier and Type Field Description private W3CEndpointReference.Addressaddress(package private) java.util.Map<javax.xml.namespace.QName,java.lang.String>attributes(package private) java.util.List<org.w3c.dom.Element>elementsprivate W3CEndpointReference.Elementsmetadata(package private) static java.lang.StringNSAddressing namespace.private W3CEndpointReference.ElementsreferenceParametersprivate jakarta.xml.bind.JAXBContextw3cjc
-
Constructor Summary
Constructors Modifier Constructor Description privateW3CEndpointReference()Default constructor.W3CEndpointReference(javax.xml.transform.Source source)Creates an EPR from infoset representation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.util.Map<javax.xml.namespace.QName,java.lang.String>getAddressAttributes()Returns a list of extension attributes of theW3CEndpointReferenceinstance'swsa:Addresselement.(package private) java.lang.StringgetAddressUri()Returns theaddressof theW3CEndpointReferenceinstance'swsa:Addresselement.(package private) java.util.Map<javax.xml.namespace.QName,java.lang.String>getAttributes()Returns a list of extension attributes of theW3CEndpointReferenceinstance'swsa:EndpointReferenceelement.(package private) java.util.List<org.w3c.dom.Element>getElements()Returns a list of an extension elements of theW3CEndpointReferenceinstance'swsa:EndpointReferenceelement.(package private) java.util.List<org.w3c.dom.Element>getMetadata()Returns the list ofmetadataElements of theW3CEndpointReferenceinstance's of thewsa:Metadataelement.(package private) java.util.List<org.w3c.dom.Element>getReferenceParameters()Returns a list of thereferenceParameters of theW3CEndpointReferenceinstance'swsa:ReferenceParameterselement.private static jakarta.xml.bind.JAXBContextgetW3CJaxbContext()voidwriteTo(javax.xml.transform.Result result)write thisEndpointReferenceto the specified infoset format-
Methods inherited from class jakarta.xml.ws.EndpointReference
getPort, readFrom, toString
-
-
-
-
Field Detail
-
w3cjc
private final jakarta.xml.bind.JAXBContext w3cjc
-
NS
static final java.lang.String NS
Addressing namespace.- See Also:
- Constant Field Values
-
address
private W3CEndpointReference.Address address
-
referenceParameters
private W3CEndpointReference.Elements referenceParameters
-
metadata
private W3CEndpointReference.Elements metadata
-
attributes
java.util.Map<javax.xml.namespace.QName,java.lang.String> attributes
-
elements
java.util.List<org.w3c.dom.Element> elements
-
-
Constructor Detail
-
W3CEndpointReference
private W3CEndpointReference()
Default constructor.
-
W3CEndpointReference
public W3CEndpointReference(javax.xml.transform.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.java.lang.NullPointerException- If thenullsourcevalue is given
-
-
Method Detail
-
getAddressUri
java.lang.String getAddressUri()
Returns theaddressof theW3CEndpointReferenceinstance'swsa:Addresselement.- Returns:
- The
addressof thewsa:Address.
-
getAddressAttributes
java.util.Map<javax.xml.namespace.QName,java.lang.String> getAddressAttributes()
Returns a list of extension attributes of theW3CEndpointReferenceinstance'swsa:Addresselement.- Returns:
- The extension attributes of the
wsa:Addresselement.
-
getReferenceParameters
java.util.List<org.w3c.dom.Element> getReferenceParameters()
Returns a list of thereferenceParameters of theW3CEndpointReferenceinstance'swsa:ReferenceParameterselement.- Returns:
- The
referenceParameters of thewsa:ReferenceParameterselement.
-
getMetadata
java.util.List<org.w3c.dom.Element> getMetadata()
Returns the list ofmetadataElements of theW3CEndpointReferenceinstance's of thewsa:Metadataelement.- Returns:
- The
metadataElements of thewsa:Metadataelement.
-
getAttributes
java.util.Map<javax.xml.namespace.QName,java.lang.String> getAttributes()
Returns a list of extension attributes of theW3CEndpointReferenceinstance'swsa:EndpointReferenceelement.- Returns:
- The extension attributes of the
W3CEndpointReference.
-
getElements
java.util.List<org.w3c.dom.Element> getElements()
Returns a list of an extension elements of theW3CEndpointReferenceinstance'swsa:EndpointReferenceelement.- Returns:
- Extension
elements of theW3CEndpointReferenceinstance.
-
writeTo
public void writeTo(javax.xml.transform.Result result)
Description copied from class:EndpointReferencewrite thisEndpointReferenceto the specified infoset format- Specified by:
writeToin classEndpointReference- Parameters:
result- for writing infoset
-
getW3CJaxbContext
private static jakarta.xml.bind.JAXBContext getW3CJaxbContext()
-
-