com.go.trove.net
Class HttpClient.Response

java.lang.Object
  |
  +--com.go.trove.net.HttpClient.Response
Enclosing class:
HttpClient

public class HttpClient.Response
extends java.lang.Object


Method Summary
 HttpHeaderMap getHeaders()
           
 java.io.InputStream getInputStream()
          Returns an InputStream supplying the body of the response.
 int getStatusCode()
          Resturns the server's status code, 200 for OK, 404 for not found, etc.
 java.lang.String getStatusMessage()
          Returns the server's status message accompanying the status code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatusCode

public int getStatusCode()
Resturns the server's status code, 200 for OK, 404 for not found, etc.

getStatusMessage

public java.lang.String getStatusMessage()
Returns the server's status message accompanying the status code. This message is intended for humans only.

getHeaders

public HttpHeaderMap getHeaders()

getInputStream

public java.io.InputStream getInputStream()
Returns an InputStream supplying the body of the response. When all of the response body has been read, the connection is either closed or recycled, depending on if all the criteria is met for supporting persistent connections. Further reads on the InputStream will return EOF.