0N/A/*
2362N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage com.sun.xml.internal.ws.api.message;
0N/A
0N/Aimport com.sun.istack.internal.NotNull;
0N/Aimport com.sun.istack.internal.Nullable;
0N/Aimport com.sun.xml.internal.bind.api.Bridge;
0N/Aimport com.sun.xml.internal.ws.api.SOAPVersion;
0N/Aimport com.sun.xml.internal.ws.api.WSBinding;
0N/Aimport com.sun.xml.internal.ws.api.addressing.AddressingVersion;
0N/Aimport com.sun.xml.internal.ws.api.model.wsdl.WSDLPort;
0N/Aimport org.xml.sax.ContentHandler;
0N/Aimport org.xml.sax.ErrorHandler;
0N/Aimport org.xml.sax.SAXException;
0N/A
0N/Aimport javax.xml.bind.JAXBException;
0N/Aimport javax.xml.bind.Unmarshaller;
0N/Aimport javax.xml.namespace.QName;
0N/Aimport javax.xml.soap.SOAPException;
0N/Aimport javax.xml.soap.SOAPMessage;
0N/Aimport javax.xml.stream.XMLStreamException;
0N/Aimport javax.xml.stream.XMLStreamReader;
0N/Aimport javax.xml.stream.XMLStreamWriter;
0N/Aimport javax.xml.transform.Source;
0N/A
0N/A/**
0N/A * A <code>FilterMessageImpl</code> contains some other Message, which it uses
0N/A * as its basic source of message data, possibly transforming the data along
0N/A * the way or providing additional functionality.
0N/A *
0N/A * <p>
0N/A * The class <code>FilterMessageImpl</code> itself simply overrides
0N/A * all the methods of <code>Message</code> and invokes them on
0N/A * contained Message delegate. Subclasses of <code>FilterMessageImpl</code>
0N/A * may further override some of these methods and may also provide
0N/A * additional methods and fields.
0N/A *
0N/A * @author Jitendra Kotamraju
0N/A */
0N/Apublic class FilterMessageImpl extends Message {
0N/A private final Message delegate;
0N/A
0N/A protected FilterMessageImpl(Message delegate) {
0N/A this.delegate = delegate;
0N/A }
0N/A
0N/A public boolean hasHeaders() {
0N/A return delegate.hasHeaders();
0N/A }
0N/A
0N/A public @NotNull HeaderList getHeaders() {
0N/A return delegate.getHeaders();
0N/A }
0N/A
0N/A public @NotNull AttachmentSet getAttachments() {
0N/A return delegate.getAttachments();
0N/A }
0N/A
0N/A protected boolean hasAttachments() {
0N/A return delegate.hasAttachments();
0N/A }
0N/A
0N/A public boolean isOneWay(@NotNull WSDLPort port) {
0N/A return delegate.isOneWay(port);
0N/A }
0N/A
0N/A public @Nullable String getPayloadLocalPart() {
0N/A return delegate.getPayloadLocalPart();
0N/A }
0N/A
0N/A public String getPayloadNamespaceURI() {
0N/A return delegate.getPayloadNamespaceURI();
0N/A }
0N/A
0N/A public boolean hasPayload() {
0N/A return delegate.hasPayload();
0N/A }
0N/A
0N/A public boolean isFault() {
0N/A return delegate.isFault();
0N/A }
0N/A
0N/A public @Nullable QName getFirstDetailEntryName() {
0N/A return delegate.getFirstDetailEntryName();
0N/A }
0N/A
0N/A public Source readEnvelopeAsSource() {
0N/A return delegate.readEnvelopeAsSource();
0N/A }
0N/A
0N/A public Source readPayloadAsSource() {
0N/A return delegate.readPayloadAsSource();
0N/A }
0N/A
0N/A public SOAPMessage readAsSOAPMessage() throws SOAPException {
0N/A return delegate.readAsSOAPMessage();
0N/A }
0N/A
0N/A public SOAPMessage readAsSOAPMessage(Packet packet, boolean inbound) throws SOAPException {
0N/A return delegate.readAsSOAPMessage(packet, inbound);
0N/A }
0N/A
0N/A public <T> T readPayloadAsJAXB(Unmarshaller unmarshaller) throws JAXBException {
0N/A return (T)delegate.readPayloadAsJAXB(unmarshaller);
0N/A }
0N/A
0N/A public <T> T readPayloadAsJAXB(Bridge<T> bridge) throws JAXBException {
0N/A return delegate.readPayloadAsJAXB(bridge);
0N/A }
0N/A
0N/A public XMLStreamReader readPayload() throws XMLStreamException {
0N/A return delegate.readPayload();
0N/A }
0N/A
0N/A public void consume() {
0N/A delegate.consume();
0N/A }
0N/A
0N/A public void writePayloadTo(XMLStreamWriter sw) throws XMLStreamException {
0N/A delegate.writePayloadTo(sw);
0N/A }
0N/A
0N/A public void writeTo(XMLStreamWriter sw) throws XMLStreamException {
0N/A delegate.writeTo(sw);
0N/A }
0N/A
0N/A public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException {
0N/A delegate.writeTo(contentHandler, errorHandler);
0N/A }
0N/A
0N/A public Message copy() {
0N/A return delegate.copy();
0N/A }
0N/A
0N/A public @NotNull String getID(@NotNull WSBinding binding) {
0N/A return delegate.getID(binding);
0N/A }
0N/A
0N/A public @NotNull String getID(AddressingVersion av, SOAPVersion sv) {
0N/A return delegate.getID(av, sv);
0N/A }
0N/A}
0N/A