net.noderunner.http
Class ServerRequest

java.lang.Object
  extended by net.noderunner.http.Request
      extended by 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 net.noderunner.http.Request
getHeaders, getRequestLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerRequest

public ServerRequest(java.io.InputStream is)
              throws java.io.IOException
Constructs a ServerRequest by parsing an input stream.

Throws:
java.io.IOException
Method Detail

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 © 2010. All Rights Reserved.