View Javadoc

    1   package org.codehaus.xfire.exchange;
    2
    3   import javax.xml.stream.XMLStreamReader;
    4
    5   /***
    6    * A "in" message. These arrive at endpoints.
    7
    8    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    9    */
    10  public class InMessage
    11      extends AbstractMessage
    12  {
    13      private XMLStreamReader xmlStreamReader;
    14
    15      public InMessage()
    16      {
    17      }
    18
    19      public InMessage(XMLStreamReader xmlStreamReader)
    20      {
    21          this.xmlStreamReader = xmlStreamReader;
    22          setUri(ANONYMOUS_URI);
    23      }
    24
    25      public InMessage(XMLStreamReader xmlStreamReader, String uri)
    26      {
    27          this.xmlStreamReader = xmlStreamReader;
    28          setUri(uri);
    29      }
    30
    31      public XMLStreamReader getXMLStreamReader()
    32      {
    33          return xmlStreamReader;
    34      }
    35  }