jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/soap/ver1_2/SOAPPart1_2Impl.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2017, 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 |
51 |
51 |
52 public SOAPPart1_2Impl(MessageImpl message) { |
52 public SOAPPart1_2Impl(MessageImpl message) { |
53 super(message); |
53 super(message); |
54 } |
54 } |
55 |
55 |
|
56 @Override |
56 protected String getContentType() { |
57 protected String getContentType() { |
57 return "application/soap+xml"; |
58 return "application/soap+xml"; |
58 } |
59 } |
59 |
60 |
|
61 @Override |
60 protected Envelope createEmptyEnvelope(String prefix) throws SOAPException { |
62 protected Envelope createEmptyEnvelope(String prefix) throws SOAPException { |
61 return new Envelope1_2Impl(getDocument(), prefix, true, true); |
63 return new Envelope1_2Impl(getDocument(), prefix, true, true); |
62 } |
64 } |
63 |
65 |
|
66 @Override |
64 protected Envelope createEnvelopeFromSource() throws SOAPException { |
67 protected Envelope createEnvelopeFromSource() throws SOAPException { |
65 XMLDeclarationParser parser = lookForXmlDecl(); |
68 XMLDeclarationParser parser = lookForXmlDecl(); |
66 Source tmp = source; |
69 Source tmp = source; |
67 source = null; |
70 source = null; |
68 EnvelopeImpl envelope = (EnvelopeImpl)EnvelopeFactory.createEnvelope(tmp, this); |
71 EnvelopeImpl envelope = (EnvelopeImpl)EnvelopeFactory.createEnvelope(tmp, this); |
80 } |
83 } |
81 return envelope; |
84 return envelope; |
82 |
85 |
83 } |
86 } |
84 |
87 |
|
88 @Override |
85 protected SOAPPartImpl duplicateType() { |
89 protected SOAPPartImpl duplicateType() { |
86 return new SOAPPart1_2Impl(); |
90 return new SOAPPart1_2Impl(); |
87 } |
91 } |
88 |
92 |
89 @Override |
93 @Override |