package org.codehaus.xfire.exchange;

import javax.xml.stream.XMLStreamReader;

/**
 * A "in" message. These arrive at endpoints.

 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
 */
public class InMessage
    extends AbstractMessage
{
    private XMLStreamReader xmlStreamReader;

    public InMessage()
    {
    }
    
    public InMessage(XMLStreamReader xmlStreamReader)
    {
        this.xmlStreamReader = xmlStreamReader;
        setUri(ANONYMOUS_URI);
    }
    
    public InMessage(XMLStreamReader xmlStreamReader, String uri)
    {
        this.xmlStreamReader = xmlStreamReader;
        setUri(uri);
    }

    public void setXMLStreamReader(XMLStreamReader xmlStreamReader)
    {
        this.xmlStreamReader = xmlStreamReader;
    }

    public XMLStreamReader getXMLStreamReader()
    {
        return xmlStreamReader;
    }
}
package org.codehaus.xfire.exchange;

import javax.xml.stream.XMLStreamReader;

/**
 * A "in" message. These arrive at endpoints.

 * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
 */
public class InMessage
    extends AbstractMessage
{
    private XMLStreamReader xmlStreamReader;

    public InMessage()
    {
    }
    
    public InMessage(XMLStreamReader xmlStreamReader)
    {
        this.xmlStreamReader = xmlStreamReader;
        setUri(ANONYMOUS_URI);
    }
    
    public InMessage(XMLStreamReader xmlStreamReader, String uri)
    {
        this.xmlStreamReader = xmlStreamReader;
        setUri(uri);
    }

    public XMLStreamReader getXMLStreamReader()
    {
        return xmlStreamReader;
    }
}
--- 
+++ 
@@ -28,6 +28,11 @@
         setUri(uri);
     }
 
+    public void setXMLStreamReader(XMLStreamReader xmlStreamReader)
+    {
+        this.xmlStreamReader = xmlStreamReader;
+    }
+
     public XMLStreamReader getXMLStreamReader()
     {
         return xmlStreamReader;
Allow the stream reader to be set


git-svn-id: 9326b53cbc4a8f4c3d02979b62b178127d5150fe@659 c7d0bf07-ec0d-0410-b2cc-d48fa9be22ba
