|
||||||||||
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(InputStream is)
Constructs a ClientResponseImpl by parsing an input stream. |
Method Summary | |
---|---|
InputStream |
getInputStream()
Returns a stream for reading data from the HTTP server. |
int |
readFully()
Reads a response's input stream until EOF. |
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(InputStream is) throws IOException
ClientResponseImpl
by parsing an input stream.
IOException
Method Detail |
---|
public InputStream getInputStream()
public int readFully() throws IOException
IOException
public String toString()
toString
in class Response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |