public class HttpResponse
extends java.lang.Object
| Constructor and Description |
|---|
HttpResponse(java.io.InputStream is)
Read the input stream until a complete HTTP response is formed.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Header> |
getAllHeaders() |
Header |
getHeader(java.lang.String name) |
StatusLine |
getStatusLine() |
java.lang.String |
toString() |
public HttpResponse(java.io.InputStream is)
throws java.io.IOException
WARNING: this method won't return until the response is complete!
is - the stream to read the data fromjava.io.IOException - if an error occurs on the streampublic StatusLine getStatusLine()
public Header getHeader(java.lang.String name)
name - the name of the desired header fieldpublic java.util.List<Header> getAllHeaders()
public java.lang.String toString()
toString in class java.lang.Object