Top Description Inners Fields Constructors Methods
javax.xml.ws.wsaddressing

public final Class W3CEndpointReference

extends EndpointReference
Class Inheritance
Annotations
@XmlRootElement
name:EndpointReference
namespace:http://www.w3.org/2005/08/addressing
@XmlType
name:EndpointReferenceType
namespace:http://www.w3.org/2005/08/addressing
Imports
org.w3c.dom.Element, javax.xml.bind.JAXBContext, .JAXBException, .Marshaller, javax.xml.bind.annotation.XmlAnyAttribute, .XmlAnyElement, .XmlElement, .XmlRootElement, .XmlType, .XmlValue, javax.xml.namespace.QName, javax.xml.transform.Result, .Source, javax.xml.ws.EndpointReference, .WebServiceException, java.util.List, .Map

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.

JAXB will use the JAXB 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 and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private W3CEndpointReference.Address
pack-priv Map<QName, String>
pack-priv List<Element>
private W3CEndpointReference.Elements
protected static final String
NS

Addressing namespace.

private W3CEndpointReference.Elements
private final JAXBContext

Constructor Summary

AccessConstructor and Description
protected
W3CEndpointReference()

Default constructor.

public
W3CEndpointReference(Source
A source object containing valid XmlInfoset instance consistent with the W3C WS-Addressing Core recommendation.
source
)

Creates an EPR from infoset representation

Method Summary

Modifier and TypeMethod and Description
private static JAXBContext
public void
writeTo(Result
for writing infoset
result
)

Implements abstract javax.xml.ws.EndpointReference.writeTo.

write this EndpointReference to the specified infoset format
Inherited from javax.xml.ws.EndpointReference:
getPortreadFromtoString

Field Detail

addressback to summary
private W3CEndpointReference.Address address
Annotations
@XmlElement
name:Address
namespace:http://www.w3.org/2005/08/addressing
attributesback to summary
pack-priv Map<QName, String> attributes
Annotations
@XmlAnyAttribute
elementsback to summary
pack-priv List<Element> elements
Annotations
@XmlAnyElement
metadataback to summary
private W3CEndpointReference.Elements metadata
Annotations
@XmlElement
name:Metadata
namespace:http://www.w3.org/2005/08/addressing
NSback to summary
protected static final String NS

Addressing namespace.

referenceParametersback to summary
private W3CEndpointReference.Elements referenceParameters
Annotations
@XmlElement
name:ReferenceParameters
namespace:http://www.w3.org/2005/08/addressing
w3cjcback to summary
private final JAXBContext w3cjc

Constructor Detail

W3CEndpointReferenceback to summary
protected W3CEndpointReference()

Default constructor.

W3CEndpointReferenceback to summary
public W3CEndpointReference(Source source)

Creates an EPR from infoset representation

Parameters
source:Source

A source object containing valid XmlInfoset instance consistent with the W3C WS-Addressing Core recommendation.

Exceptions
WebServiceException:
If the source does NOT contain a valid W3C WS-Addressing EndpointReference.
NullPointerException:
If the null source value is given

Method Detail

getW3CJaxbContextback to summary
private static JAXBContext getW3CJaxbContext()
writeToback to summary
public void writeTo(Result result)

Implements abstract javax.xml.ws.EndpointReference.writeTo.

Doc from javax.xml.ws.EndpointReference.writeTo.

write this EndpointReference to the specified infoset format

Parameters
result:Result

for writing infoset

Annotations
@Override
javax.xml.ws.wsaddressing back to summary

private Class W3CEndpointReference.Address

extends Object
Class Inheritance
Annotations
@XmlType
name:address
namespace:http://www.w3.org/2005/08/addressing

Field Summary

Modifier and TypeField and Description
pack-priv Map<QName, String>
pack-priv String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributesback to summary
pack-priv Map<QName, String> attributes
Annotations
@XmlAnyAttribute
uriback to summary
pack-priv String uri
Annotations
@XmlValue

Constructor Detail

Addressback to summary
protected Address()
javax.xml.ws.wsaddressing back to summary

private Class W3CEndpointReference.Elements

extends Object
Class Inheritance
Annotations
@XmlType
name:elements
namespace:http://www.w3.org/2005/08/addressing

Field Summary

Modifier and TypeField and Description
pack-priv Map<QName, String>
pack-priv List<Element>

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributesback to summary
pack-priv Map<QName, String> attributes
Annotations
@XmlAnyAttribute
elementsback to summary
pack-priv List<Element> elements
Annotations
@XmlAnyElement

Constructor Detail

Elementsback to summary
protected Elements()