org.openid4java.util
Interface HttpResponse

All Known Implementing Classes:
HttpCache.DefaultHttpResponse

public interface HttpResponse

Container class for HTTP responses.

Author:
Marius Scurtescu, Johnny Bufu

Method Summary
 java.lang.String getBody()
          Gets the HttpResponse body.
 java.lang.String getFinalUri()
          Gets the final URI from where the document was obtained, after following redirects.
 org.apache.http.Header getResponseHeader(java.lang.String headerName)
          Gets the first header matching the provided headerName parameter, or null if no header with that name exists.
 org.apache.http.Header[] getResponseHeaders(java.lang.String headerName)
          Gets an array of Header objects for the provided headerName parameter.
 int getStatusCode()
          Gets the status code of the HttpResponse.
 boolean isBodySizeExceeded()
          Returns true if the HTTP response size exceeded the maximum allowed by the (default) HttpRequestOptions.
 

Method Detail

getStatusCode

int getStatusCode()
Gets the status code of the HttpResponse.


getFinalUri

java.lang.String getFinalUri()
Gets the final URI from where the document was obtained, after following redirects.


getResponseHeader

org.apache.http.Header getResponseHeader(java.lang.String headerName)
Gets the first header matching the provided headerName parameter, or null if no header with that name exists.


getResponseHeaders

org.apache.http.Header[] getResponseHeaders(java.lang.String headerName)
Gets an array of Header objects for the provided headerName parameter.


getBody

java.lang.String getBody()
Gets the HttpResponse body.


isBodySizeExceeded

boolean isBodySizeExceeded()
Returns true if the HTTP response size exceeded the maximum allowed by the (default) HttpRequestOptions.



Copyright 2006-2008 Sxip Identity Corporation