Class HttpResponse
java.lang.Object
com.ibm.security.access.httpclient.HttpResponse
This class stores the code and body of a HTTP response.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()
int
getCode()
CookieStore
Get the CookieStoreString[]
Get all the keys in the header.Get all the headers.String[]
getHeaderValues
(String key) Get all the header values associated with given key.Converts a CookieStore object into a string representation.toString()
-
Field Details
-
HttpResponse_java_sourceCodeID
- See Also:
-
HttpResponse_java_copyright
- See Also:
-
-
Constructor Details
-
HttpResponse
public HttpResponse()
-
-
Method Details
-
getCode
public int getCode()- Returns:
- The HTTP response code. -1 if response code not set.
-
getBody
- Returns:
- The HTTP response body.
-
getHeaders
Get all the headers.- Returns:
- A Map (String, List(String)) of the headers.
-
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
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
Converts a CookieStore object into a string representation.- Returns:
- String
-
toString
-