Interface HttpRequest
- All Known Implementing Classes:
HttpRequestImpl
public interface HttpRequest
An interface for HttpRequests
- Author:
- Vasiliki Gkatziaki
-
Method Summary
Modifier and TypeMethodDescriptionReturns the endpoint of the requestgetHost()Returns the hostorg.json.JSONObjectReturns the response as a JSONObjectReturns the response as a stringintReturns the status code of the request
-
Method Details
-
getResponse
-
getJSONResponse
org.json.JSONObject getJSONResponse()Returns the response as a JSONObject- Returns:
-
getStatusCode
int getStatusCode()Returns the status code of the request- Returns:
-
getHost
-
getEndpoint
-