Class HttpCallResponse

java.lang.Object
edu.internet2.middleware.grouperClient.util.HttpCallResponse

public class HttpCallResponse extends Object
response from http call
  • Constructor Details

    • HttpCallResponse

      public HttpCallResponse()
    • HttpCallResponse

      public HttpCallResponse(int theHttpResponseCode)
      Parameters:
      theHttpResponseCode - http response code
    • HttpCallResponse

      public HttpCallResponse(int theHttpResponseCode, String theResponseBody)
      Parameters:
      theHttpResponseCode -
      theResponseBody -
  • Method Details

    • getUrl

      public String getUrl()
      uri from http call
      Returns:
      the uri
    • setUrl

      public void setUrl(String uri1)
      uri from http call
      Parameters:
      uri1 - the uri to set
    • getHttpCallMethod

      public HttpCallMethod getHttpCallMethod()
      method from http call
      Returns:
      the method
    • setHttpCallMethod

      public void setHttpCallMethod(HttpCallMethod method1)
      method from http call
      Parameters:
      method1 - the method to set
    • getContentType

      public String getContentType()
      content type from http call
      Returns:
      the contentType
    • setContentType

      public void setContentType(String contentType1)
      content type from http call
      Parameters:
      contentType1 - the contentType to set
    • assertResponseCodes

      public void assertResponseCodes(int... validResponseCodes)
      make sure response code is ok
      Parameters:
      validResponseCodes -
    • getResponseBody

      public String getResponseBody()
      response body if there is one
      Returns:
      the responseBody
    • setResponseBody

      public void setResponseBody(String responseBody1)
      response body if there is one
      Parameters:
      responseBody1 - the responseBody to set
    • getHttpResponseCode

      public int getHttpResponseCode()
      http response code
      Returns:
      the httpRepsonseCode
    • setHttpResponseCode

      public void setHttpResponseCode(int httpRepsonseCode1)
      http response code
      Parameters:
      httpRepsonseCode1 - the httpRepsonseCode to set