Class HttpResponse

java.lang.Object
velo.ladaalpha.fields.internet.HttpResponse

public class HttpResponse extends Object
The Class HttpResponse.
  • Constructor Details

    • HttpResponse

      public HttpResponse()
  • Method Details

    • getJsonBody

      public org.json.simple.JSONObject getJsonBody()
      Gets the json body.
      Returns:
      the json body
    • addHeader

      public void addHeader(String name, String val)
      Adds the header.
      Parameters:
      name - the name
      val - the val
    • getHeaders

      public HashMap<String,String> getHeaders()
      Gets the headers.
      Returns:
      the headers
    • getBody

      public String getBody()
      Gets the body.
      Returns:
      the body
    • setBody

      public void setBody(String body)
      Sets the body.
      Parameters:
      body - the new body
    • getResponseCode

      public int getResponseCode()
      Gets the response code.
      Returns:
      the response code
    • setResponseCode

      public void setResponseCode(int responseCode)
      Sets the response code.
      Parameters:
      responseCode - the new response code
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string