2 |
26 Feb 07 |
jari |
1 |
/* |
2 |
26 Feb 07 |
jari |
Copyright @ 1999-2003, The Institute for Genomic Research (TIGR). |
2 |
26 Feb 07 |
jari |
All rights reserved. |
2 |
26 Feb 07 |
jari |
4 |
*/ |
2 |
26 Feb 07 |
jari |
5 |
/* |
2 |
26 Feb 07 |
jari |
* $RCSfile: ResponseMessage.java,v $ |
2 |
26 Feb 07 |
jari |
* $Revision: 1.3 $ |
2 |
26 Feb 07 |
jari |
* $Date: 2005/03/10 15:28:22 $ |
2 |
26 Feb 07 |
jari |
* $Author: braistedj $ |
2 |
26 Feb 07 |
jari |
* $State: Exp $ |
2 |
26 Feb 07 |
jari |
11 |
*/ |
2 |
26 Feb 07 |
jari |
12 |
package org.tigr.remote.protocol.communication; |
2 |
26 Feb 07 |
jari |
13 |
|
2 |
26 Feb 07 |
jari |
14 |
import java.io.InputStream; |
2 |
26 Feb 07 |
jari |
15 |
|
2 |
26 Feb 07 |
jari |
16 |
import org.tigr.util.ConfMap; |
2 |
26 Feb 07 |
jari |
17 |
|
2 |
26 Feb 07 |
jari |
18 |
public class ResponseMessage extends Message { |
2 |
26 Feb 07 |
jari |
19 |
|
2 |
26 Feb 07 |
jari |
20 |
/** |
2 |
26 Feb 07 |
jari |
* Constructs a <code>ResponseMessage</code> with specified from, to |
2 |
26 Feb 07 |
jari |
* parameters and input stream to be wrapped. |
2 |
26 Feb 07 |
jari |
23 |
*/ |
2 |
26 Feb 07 |
jari |
24 |
public ResponseMessage( String from, String to, InputStream in ) { |
2 |
26 Feb 07 |
jari |
25 |
super( from, to ); |
2 |
26 Feb 07 |
jari |
26 |
m_stream = in; |
2 |
26 Feb 07 |
jari |
27 |
} |
2 |
26 Feb 07 |
jari |
28 |
|
2 |
26 Feb 07 |
jari |
29 |
/** |
2 |
26 Feb 07 |
jari |
* Constructs a <code>ResponseMessage</code> with specified from, to |
2 |
26 Feb 07 |
jari |
* parameters, configuration and input stream to be wrapped. |
2 |
26 Feb 07 |
jari |
32 |
*/ |
2 |
26 Feb 07 |
jari |
33 |
public ResponseMessage( String from, String to, ConfMap properties, InputStream in ) { |
2 |
26 Feb 07 |
jari |
34 |
super( from, to, properties ); |
2 |
26 Feb 07 |
jari |
35 |
m_stream = in; |
2 |
26 Feb 07 |
jari |
36 |
} |
2 |
26 Feb 07 |
jari |
37 |
|
2 |
26 Feb 07 |
jari |
38 |
/** |
2 |
26 Feb 07 |
jari |
* Returns the wrapped input stream. |
2 |
26 Feb 07 |
jari |
40 |
*/ |
2 |
26 Feb 07 |
jari |
41 |
public InputStream getStream() { |
2 |
26 Feb 07 |
jari |
42 |
return m_stream; |
2 |
26 Feb 07 |
jari |
43 |
} |
2 |
26 Feb 07 |
jari |
44 |
|
2 |
26 Feb 07 |
jari |
45 |
private InputStream m_stream = null; |
2 |
26 Feb 07 |
jari |
46 |
} |