src/share/jaxws_classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 512
3ee93ab2a373
equal deleted inserted replaced
366:8c0b6bccfe47 368:0989ad8c0860
1 /* 1 /*
2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
69 @XmlType(name="EndpointReferenceType",namespace=W3CEndpointReference.NS) 69 @XmlType(name="EndpointReferenceType",namespace=W3CEndpointReference.NS)
70 public final class W3CEndpointReference extends EndpointReference { 70 public final class W3CEndpointReference extends EndpointReference {
71 71
72 private final static JAXBContext w3cjc = getW3CJaxbContext(); 72 private final static JAXBContext w3cjc = getW3CJaxbContext();
73 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
74 protected W3CEndpointReference() { 79 protected W3CEndpointReference() {
75 } 80 }
76 81
77 /** 82 /**
78 * Creates an EPR from infoset representation 83 * Creates an EPR from infoset representation
135 Map<QName,String> attributes; 140 Map<QName,String> attributes;
136 @XmlAnyElement 141 @XmlAnyElement
137 List<Element> elements; 142 List<Element> elements;
138 143
139 144
145 @XmlType(name="address", namespace=W3CEndpointReference.NS)
140 private static class Address { 146 private static class Address {
141 protected Address() {} 147 protected Address() {}
142 @XmlValue 148 @XmlValue
143 String uri; 149 String uri;
144 @XmlAnyAttribute 150 @XmlAnyAttribute
145 Map<QName,String> attributes; 151 Map<QName,String> attributes;
146 } 152 }
147 153
148 154
155 @XmlType(name="elements", namespace=W3CEndpointReference.NS)
149 private static class Elements { 156 private static class Elements {
150 protected Elements() {} 157 protected Elements() {}
151 @XmlAnyElement 158 @XmlAnyElement
152 List<Element> elements; 159 List<Element> elements;
153 @XmlAnyAttribute 160 @XmlAnyAttribute
154 Map<QName,String> attributes; 161 Map<QName,String> attributes;
155 } 162 }
156 163
157 protected static final String NS = "http://www.w3.org/2005/08/addressing";
158 } 164 }

mercurial