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

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 512
3ee93ab2a373
     1.1 --- a/src/share/jaxws_classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/javax/xml/ws/wsaddressing/W3CEndpointReference.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -71,6 +71,11 @@
    1.11  
    1.12      private final static JAXBContext w3cjc = getW3CJaxbContext();
    1.13  
    1.14 +    // should be changed to package private, keeping original modifier to keep backwards compatibility
    1.15 +    protected static final String NS = "http://www.w3.org/2005/08/addressing";
    1.16 +
    1.17 +    // default constructor forbidden ...
    1.18 +    // should be private, keeping original modifier to keep backwards compatibility
    1.19      protected W3CEndpointReference() {
    1.20      }
    1.21  
    1.22 @@ -137,6 +142,7 @@
    1.23      List<Element> elements;
    1.24  
    1.25  
    1.26 +    @XmlType(name="address", namespace=W3CEndpointReference.NS)
    1.27      private static class Address {
    1.28          protected Address() {}
    1.29          @XmlValue
    1.30 @@ -146,6 +152,7 @@
    1.31      }
    1.32  
    1.33  
    1.34 +    @XmlType(name="elements", namespace=W3CEndpointReference.NS)
    1.35      private static class Elements {
    1.36          protected Elements() {}
    1.37          @XmlAnyElement
    1.38 @@ -154,5 +161,4 @@
    1.39          Map<QName,String> attributes;
    1.40      }
    1.41  
    1.42 -    protected static final String NS = "http://www.w3.org/2005/08/addressing";
    1.43  }

mercurial