Class HttpResponse

java.lang.Object
com.tivoli.am.fim.trustserver.sts.utilities.HttpResponse

public class HttpResponse extends Object
This class stores the code and body of a HTTP response.
  • Field Details

  • Constructor Details

    • HttpResponse

      public HttpResponse()
  • Method Details

    • getCode

      public int getCode()
      Returns:
      The HTTP response code. -1 if response code not set.
    • getBody

      public String getBody()
      Returns:
      The HTTP response body.
    • getHeaderKeys

      public 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 String[] getHeaderValues(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 are no headers, an empty array is returned.