jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/message/EmptyMessageImpl.java
equal
deleted
inserted
replaced
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 |
74 */ |
74 */ |
75 private EmptyMessageImpl(EmptyMessageImpl that) { |
75 private EmptyMessageImpl(EmptyMessageImpl that) { |
76 super(that); |
76 super(that); |
77 this.headers = new HeaderList(that.headers); |
77 this.headers = new HeaderList(that.headers); |
78 this.attachmentSet = that.attachmentSet; |
78 this.attachmentSet = that.attachmentSet; |
|
79 this.copyFrom(that); |
79 } |
80 } |
80 |
81 |
81 public boolean hasHeaders() { |
82 public boolean hasHeaders() { |
82 return headers.hasHeaders(); |
83 return headers.hasHeaders(); |
83 } |
84 } |
113 public void writePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException { |
114 public void writePayloadTo(ContentHandler contentHandler, ErrorHandler errorHandler, boolean fragment) throws SAXException { |
114 // noop |
115 // noop |
115 } |
116 } |
116 |
117 |
117 public Message copy() { |
118 public Message copy() { |
118 return new EmptyMessageImpl(this); |
119 return new EmptyMessageImpl(this).copyFrom(this); |
119 } |
120 } |
120 |
121 |
121 } |
122 } |