Class HttpResponse
- java.lang.Object
-
- com.ibm.security.access.httpclient.HttpResponse
-
public class HttpResponse extends java.lang.Object
This class stores the code and body of a HTTP response.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HttpResponse_java_copyright
static java.lang.String
HttpResponse_java_sourceCodeID
-
Constructor Summary
Constructors Constructor Description HttpResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBody()
int
getCode()
CookieStore
getCookieStore()
Get the CookieStorejava.lang.String[]
getHeaderKeys()
Get all the keys in the header.java.util.Map
getHeaders()
Get all the headers.java.lang.String[]
getHeaderValues(java.lang.String key)
Get all the header values associated with given key.java.lang.String
getSerializedCookieStore()
Converts a CookieStore object into a string representation.java.lang.String
toString()
-
-
-
Field Detail
-
HttpResponse_java_sourceCodeID
public static final java.lang.String HttpResponse_java_sourceCodeID
- See Also:
- Constant Field Values
-
HttpResponse_java_copyright
public static final java.lang.String HttpResponse_java_copyright
-
-
Method Detail
-
getCode
public int getCode()
- Returns:
- The HTTP response code. -1 if response code not set.
-
getBody
public java.lang.String getBody()
- Returns:
- The HTTP response body.
-
getHeaders
public java.util.Map getHeaders()
Get all the headers.- Returns:
- A Map (String, List(String)) of the headers.
-
getHeaderKeys
public java.lang.String[] getHeaderKeys()
Get all the keys in the header.- Returns:
- String array of all keys in header. If there are no headers, an empty array is returned.
-
getHeaderValues
public java.lang.String[] getHeaderValues(java.lang.String key)
Get all the header values associated with given key.- Parameters:
key
- Header key- Returns:
- String array of header values associated with given key. If there is no such header, an empty array is returned.
-
getCookieStore
public CookieStore getCookieStore()
Get the CookieStore- Returns:
- The CookieStore.
-
getSerializedCookieStore
public java.lang.String getSerializedCookieStore()
Converts a CookieStore object into a string representation.- Returns:
- String
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-