Skip to content

Package: Envelope

Envelope

Coverage

1: /*
2: * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package com.sun.xml.messaging.saaj.soap;
12:
13: import java.io.IOException;
14: import java.io.OutputStream;
15:
16: import jakarta.xml.soap.SOAPEnvelope;
17: import jakarta.xml.soap.SOAPException;
18: import javax.xml.transform.Source;
19:
20: /**
21: * Different implementations for SOAP Envelope must all implement this
22: * interface.
23: *
24: * @author Anil Vijendran (akv@eng.sun.com)
25: */
26: public interface Envelope extends SOAPEnvelope {
27: /**
28: * Get the content as a JAXP Source.
29: *
30: * @return source
31: */
32: Source getContent();
33:
34: /**
35: * Output the content.
36: *
37: * @param out output stream.
38: * @exception IOException in case of an I/O error.
39: */
40: void output(OutputStream out) throws IOException;
41:
42: /**
43: * Output the content.
44: *
45: * @param out output stream
46: * @param isFastInfoset true if it is fast infoset.
47: * @exception IOException in case of an I/O error.
48: */
49: void output(OutputStream out, boolean isFastInfoset) throws IOException;
50:
51: void setStaxBridge(StaxBridge bridge) throws SOAPException;
52:
53: StaxBridge getStaxBridge() throws SOAPException;
54: }