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