Skip to content

Package: LazyEnvelopeSource

LazyEnvelopeSource

Coverage

1: /*
2: * Copyright (c) 2013, 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;
12:
13: import javax.xml.namespace.QName;
14: import javax.xml.stream.XMLStreamException;
15: import javax.xml.stream.XMLStreamReader;
16: import javax.xml.stream.XMLStreamWriter;
17:
18: /**
19: * LazyEnvelopeSource provides the source to create lazy Envelope
20: *
21: * @author shih-chang.chen@oracle.com
22: */
23: public interface LazyEnvelopeSource extends javax.xml.transform.Source {
24: /**
25: * Retrieve payload qname without materializing its contents
26: * @return payload QName
27: */
28: public QName getPayloadQName();
29: public XMLStreamReader readToBodyStarTag() throws XMLStreamException;
30: public XMLStreamReader readPayload();
31: public void writePayloadTo(XMLStreamWriter writer)throws XMLStreamException;
32: public boolean isPayloadStreamReader();
33: }