org.openid4java.util
Interface HttpResponse


public interface HttpResponse

Container class for HTTP responses.

Author:
Marius Scurtescu, Johnny Bufu

Method Summary
 String getBody()
          Gets the HttpResponse body.
 String getFinalUri()
          Gets the final URI from where the document was obtained, after following redirects.
 org.apache.http.Header getResponseHeader(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(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

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


getResponseHeader

org.apache.http.Header getResponseHeader(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(String headerName)
Gets an array of Header objects for the provided headerName parameter.


getBody

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 © 2013 Sxip. All Rights Reserved.