public class HttpResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
charsRead |
boolean |
chunked |
java.lang.String |
connection |
long |
contentLength |
java.lang.String |
contentType |
int |
httpCode |
java.lang.String |
httpMsg |
java.lang.String |
httpType |
protected java.io.InputStream |
input |
java.lang.String |
location |
java.lang.String |
server |
Constructor and Description |
---|
HttpResponse(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getRest(java.lang.String line) |
void |
parseHttp(java.lang.String line) |
protected java.lang.String |
readLine(java.io.InputStream in)
Read a line of text from the given Stream and return it
as a String.
|
java.lang.String |
toString()
Generates a string representation of the http header
|
protected java.io.InputStream input
protected long charsRead
public java.lang.String httpType
public java.lang.String httpMsg
public int httpCode
public long contentLength
public java.lang.String connection
public java.lang.String contentType
public java.lang.String server
public boolean chunked
public java.lang.String location
public HttpResponse(java.io.InputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.String readLine(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static java.lang.String getRest(java.lang.String line)
public void parseHttp(java.lang.String line)
public java.lang.String toString()
toString
in class java.lang.Object
String
a string representation of the http headerCopyright © 2012. All Rights Reserved.