Java Globus API: Class HttpResponse
org.globus.util.http
Class HttpResponse
java.lang.Object
|
+--org.globus.util.http.HttpResponse
- Direct Known Subclasses:
- CallbackResponse, GaraServiceReply, GatekeeperReply
- public class HttpResponse
- extends Object
input
protected InputStream input
charsRead
protected long charsRead
httpType
public String httpType
httpMsg
public String httpMsg
httpCode
public int httpCode
contentLength
public int contentLength
connection
public String connection
contentType
public String contentType
server
public String server
chunked
public boolean chunked
HttpResponse
public HttpResponse(InputStream in)
throws IOException
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.
getRest
public static String getRest(String line)
parseHttp
public void parseHttp(String line)
toString
public String toString()
- Generates a string representation of the http header
- Overrides:
toString in class Object
- Returns:
String a string representation of the http header