|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.noderunner.http.Response
net.noderunner.http.ClientResponse
public class ClientResponse
Contains the contents of an HTTP response message.
In RFC 2616 terms, this object represents data found in the
Response
body.
Constructor Summary | |
---|---|
ClientResponse(java.io.InputStream is)
Constructs a ClientResponseImpl by parsing an input stream. |
Method Summary | |
---|---|
java.io.InputStream |
getInputStream()
Returns a stream for reading data from the HTTP server. |
int |
readFully()
Reads a response's input stream until EOF. |
java.lang.String |
toString()
Returns a debug string showing the response information contained within. |
Methods inherited from class net.noderunner.http.Response |
---|
getHeaders, getStatusLine, isContinue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientResponse(java.io.InputStream is) throws java.io.IOException
ClientResponseImpl
by parsing an input stream.
java.io.IOException
Method Detail |
---|
public java.io.InputStream getInputStream()
public int readFully() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class Response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |