jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/message/DOMMessage.java
changeset 23782 953bfc3fbe31
parent 16791 fe5141eabb0e
equal deleted inserted replaced
23403:85dbdc227c5e 23782:953bfc3fbe31
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2014, 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
    78      */
    78      */
    79     private DOMMessage(DOMMessage that) {
    79     private DOMMessage(DOMMessage that) {
    80         super(that);
    80         super(that);
    81         this.headers = HeaderList.copy(that.headers);
    81         this.headers = HeaderList.copy(that.headers);
    82         this.payload = that.payload;
    82         this.payload = that.payload;
       
    83         this.copyFrom(that);
    83     }
    84     }
    84 
    85 
    85     public boolean hasHeaders() {
    86     public boolean hasHeaders() {
    86         return getHeaders().hasHeaders();
    87         return getHeaders().hasHeaders();
    87     }
    88     }
   148         ds.setContentHandler(contentHandler);
   149         ds.setContentHandler(contentHandler);
   149         ds.scan(payload);
   150         ds.scan(payload);
   150     }
   151     }
   151 
   152 
   152     public Message copy() {
   153     public Message copy() {
   153         return new DOMMessage(this);
   154         return new DOMMessage(this).copyFrom(this);
   154     }
   155     }
   155 
   156 
   156 }
   157 }