net.noderunner.http
Class ServerRequest
java.lang.Object
net.noderunner.http.Request
net.noderunner.http.ServerRequest
public class ServerRequest
- extends Request
Specifies an HTTP request.
In RFC 2616 terms, this object represents data found in the
Request
body.
Constructor Summary |
ServerRequest(java.io.InputStream is)
Constructs a ServerRequest by parsing an input stream. |
Method Summary |
java.io.InputStream |
getInputStream()
|
int |
readFully()
Reads a response's input stream until EOF. |
java.lang.String |
toString()
Returns a debug string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServerRequest
public ServerRequest(java.io.InputStream is)
throws java.io.IOException
- Constructs a
ServerRequest
by parsing an input stream.
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
readFully
public int readFully()
throws java.io.IOException
- Reads a response's input stream until EOF.
Returns the number of bytes read.
If the server indicates the connection was closed, does nothing.
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Returns a debug string.
- Overrides:
toString
in class Request
Copyright © 2009. All Rights Reserved.