mx4j.tools.adaptor.http
public class HttpOutputStream extends BufferedOutputStream
Version: $Revision: 1.3 $
Field Summary | |
---|---|
protected int | code
Answer code |
protected Map | headers
Headers to be sent |
protected boolean | sendHeaders
whether to send the headers |
Constructor Summary | |
---|---|
HttpOutputStream(OutputStream out, HttpInputStream in)
Creates a new HttpOutputStream with a given OutputStream and an InputStream
|
Method Summary | |
---|---|
boolean | sendHeaders()
Sends the headers
|
void | setCode(int code)
Sets the answer code
|
void | setHeader(String attr, String value)
Sets a given header code
|
void | write(String msg)
Writes a given message line
|
void | write(InputStream in)
Writes the content of the input stream to the output stream
|
Parameters: out The OutputStream normally associated with the output socket stream of the incoming connection in HttpInputStream containing the incoming request
Returns: Description of the Returned Value
Throws: IOException Description of Exception
Parameters: code The new code value
Parameters: attr The new header name value The new header value
Parameters: msg The message to be written
Throws: IOException
Parameters: in The input stream
Throws: IOException