java.lang.Object
jakarta.xml.ws.EndpointReference
jakarta.xml.ws.wsaddressing.W3CEndpointReference
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 ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate W3CEndpointReference.Address
private W3CEndpointReference.Elements
(package private) static final String
Addressing namespace.private W3CEndpointReference.Elements
private final jakarta.xml.bind.JAXBContext
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Default constructor.W3CEndpointReference
(Source source) Creates an EPR from infoset representation -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of extension attributes of theW3CEndpointReference
instance'swsa:Address
element.(package private) String
Returns theaddress
of theW3CEndpointReference
instance'swsa:Address
element.Returns a list of extension attributes of theW3CEndpointReference
instance'swsa:EndpointReference
element.Returns a list of an extension elements of theW3CEndpointReference
instance'swsa:EndpointReference
element.Returns the list ofmetadataElement
s of theW3CEndpointReference
instance's of thewsa:Metadata
element.Returns a list of thereferenceParameter
s of theW3CEndpointReference
instance'swsa:ReferenceParameters
element.private static jakarta.xml.bind.JAXBContext
void
write thisEndpointReference
to the specified infoset formatMethods inherited from class jakarta.xml.ws.EndpointReference
getPort, readFrom, toString
-
Field Details
-
w3cjc
private final jakarta.xml.bind.JAXBContext w3cjc -
NS
Addressing namespace.- See Also:
-
address
-
referenceParameters
-
metadata
-
attributes
-
elements
-
-
Constructor Details
-
W3CEndpointReference
private W3CEndpointReference()Default constructor. -
W3CEndpointReference
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 thenull
source
value is given
-
-
Method Details
-
getAddressUri
String getAddressUri()Returns theaddress
of theW3CEndpointReference
instance'swsa:Address
element.- Returns:
- The
address
of thewsa:Address
.
-
getAddressAttributes
Returns a list of extension attributes of theW3CEndpointReference
instance'swsa:Address
element.- Returns:
- The extension attributes of the
wsa:Address
element.
-
getReferenceParameters
Returns a list of thereferenceParameter
s of theW3CEndpointReference
instance'swsa:ReferenceParameters
element.- Returns:
- The
referenceParameter
s of thewsa:ReferenceParameters
element.
-
getMetadata
Returns the list ofmetadataElement
s of theW3CEndpointReference
instance's of thewsa:Metadata
element.- Returns:
- The
metadataElement
s of thewsa:Metadata
element.
-
getAttributes
Returns a list of extension attributes of theW3CEndpointReference
instance'swsa:EndpointReference
element.- Returns:
- The extension attributes of the
W3CEndpointReference
.
-
getElements
Returns a list of an extension elements of theW3CEndpointReference
instance'swsa:EndpointReference
element.- Returns:
- Extension
element
s of theW3CEndpointReference
instance.
-
writeTo
Description copied from class:EndpointReference
write thisEndpointReference
to the specified infoset format- Specified by:
writeTo
in classEndpointReference
- Parameters:
result
- for writing infoset
-
getW3CJaxbContext
private static jakarta.xml.bind.JAXBContext getW3CJaxbContext()
-