Package org.globus.util.http
Class HttpResponse
- java.lang.Object
-
- org.globus.util.http.HttpResponse
-
- Direct Known Subclasses:
GatekeeperReply
public class HttpResponse extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected longcharsReadbooleanchunkedStringconnectionlongcontentLengthStringcontentTypeinthttpCodeStringhttpMsgStringhttpTypeprotected InputStreaminputStringlocationStringserver
-
Constructor Summary
Constructors Constructor Description HttpResponse(InputStream in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetRest(String line)voidparseHttp(String line)protected StringreadLine(InputStream in)Read a line of text from the given Stream and return it as a String.StringtoString()Generates a string representation of the http header
-
-
-
Field Detail
-
input
protected InputStream input
-
charsRead
protected long charsRead
-
httpType
public String httpType
-
httpMsg
public String httpMsg
-
httpCode
public int httpCode
-
contentLength
public long contentLength
-
connection
public String connection
-
contentType
public String contentType
-
server
public String server
-
chunked
public boolean chunked
-
location
public String location
-
-
Constructor Detail
-
HttpResponse
public HttpResponse(InputStream in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readLine
protected String readLine(InputStream in) throws IOException
Read a line of text from the given Stream and return it as a String. Assumes lines end in CRLF.- Throws:
IOException
-
parseHttp
public void parseHttp(String line)
-
-