44 import javax.xml.ws.WebServiceException;
45 import java.util.List;
46 import java.util.Map;
47
48
49 /**
50 * This class represents a W3C Addressing EndpointReferece which is
51 * a remote reference to a web service endpoint that supports the
52 * W3C WS-Addressing 1.0 - Core Recommendation.
53 * <p>
54 * Developers should use this class in their SEIs if they want to
55 * pass/return endpoint references that represent the W3C WS-Addressing
56 * recommendation.
57 * <p>
58 * JAXB will use the JAXB annotations and bind this class to XML infoset
59 * that is consistent with that defined by WS-Addressing. See
60 * <a href="http://www.w3.org/TR/2006/REC-ws-addr-core-20060509/">
61 * WS-Addressing</a>
62 * for more information on WS-Addressing EndpointReferences.
63 *
64 * @since JAX-WS 2.1
65 */
66
67 // XmlRootElement allows this class to be marshalled on its own
68 @XmlRootElement(name="EndpointReference",namespace=W3CEndpointReference.NS)
69 @XmlType(name="EndpointReferenceType",namespace=W3CEndpointReference.NS)
70 public final class W3CEndpointReference extends EndpointReference {
71
72 private final JAXBContext w3cjc = getW3CJaxbContext();
73
74 // should be changed to package private, keeping original modifier to keep backwards compatibility
75 protected static final String NS = "http://www.w3.org/2005/08/addressing";
76
77 // default constructor forbidden ...
78 // should be private, keeping original modifier to keep backwards compatibility
79 protected W3CEndpointReference() {
80 }
81
82 /**
83 * Creates an EPR from infoset representation
84 *
|
44 import javax.xml.ws.WebServiceException;
45 import java.util.List;
46 import java.util.Map;
47
48
49 /**
50 * This class represents a W3C Addressing EndpointReferece which is
51 * a remote reference to a web service endpoint that supports the
52 * W3C WS-Addressing 1.0 - Core Recommendation.
53 * <p>
54 * Developers should use this class in their SEIs if they want to
55 * pass/return endpoint references that represent the W3C WS-Addressing
56 * recommendation.
57 * <p>
58 * JAXB will use the JAXB annotations and bind this class to XML infoset
59 * that is consistent with that defined by WS-Addressing. See
60 * <a href="http://www.w3.org/TR/2006/REC-ws-addr-core-20060509/">
61 * WS-Addressing</a>
62 * for more information on WS-Addressing EndpointReferences.
63 *
64 * @since 1.6, JAX-WS 2.1
65 */
66
67 // XmlRootElement allows this class to be marshalled on its own
68 @XmlRootElement(name="EndpointReference",namespace=W3CEndpointReference.NS)
69 @XmlType(name="EndpointReferenceType",namespace=W3CEndpointReference.NS)
70 public final class W3CEndpointReference extends EndpointReference {
71
72 private final JAXBContext w3cjc = getW3CJaxbContext();
73
74 // should be changed to package private, keeping original modifier to keep backwards compatibility
75 protected static final String NS = "http://www.w3.org/2005/08/addressing";
76
77 // default constructor forbidden ...
78 // should be private, keeping original modifier to keep backwards compatibility
79 protected W3CEndpointReference() {
80 }
81
82 /**
83 * Creates an EPR from infoset representation
84 *
|