Interface HttpRequest

All Known Implementing Classes:
HttpRequestImpl

public interface HttpRequest
An interface for HttpRequests
Author:
Vasiliki Gkatziaki
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the endpoint of the request
    Returns the host
    org.json.JSONObject
    Returns the response as a JSONObject
    Returns the response as a string
    int
    Returns the status code of the request
  • Method Details

    • getResponse

      String getResponse()
      Returns the response as a string
      Returns:
    • getJSONResponse

      org.json.JSONObject getJSONResponse()
      Returns the response as a JSONObject
      Returns:
    • getStatusCode

      int getStatusCode()
      Returns the status code of the request
      Returns:
    • getHost

      String getHost()
      Returns the host
      Returns:
    • getEndpoint

      String getEndpoint()
      Returns the endpoint of the request
      Returns: