Package com.gmt2001
Class HttpRequest
java.lang.Object
com.gmt2001.HttpRequest
Deprecated, for removal: This API element is subject to removal in a future version.
- Author:
- gmt2001
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
generateJSONObject
(JSONObject obj, boolean isSuccess, String requestType, String data, String url, int responseCode, String exception, String exceptionMessage) Deprecated, for removal: This API element is subject to removal in a future version.Method that adds extra information to our returned object.static HttpResponse
Deprecated, for removal: This API element is subject to removal in a future version.static HttpResponse
getData
(HttpRequest.RequestType type, String url, String post, Map<String, String> headers, boolean isJson) Deprecated, for removal: This API element is subject to removal in a future version.static HttpResponse
Deprecated, for removal: This API element is subject to removal in a future version.static HttpResponse
getData
(HttpRequest.RequestType type, URI uri, String post, Map<String, String> headers, boolean isJson) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getData
public static HttpResponse getData(HttpRequest.RequestType type, String url, String post, Map<String, String> headers) Deprecated, for removal: This API element is subject to removal in a future version. -
getData
public static HttpResponse getData(HttpRequest.RequestType type, String url, String post, Map<String, String> headers, boolean isJson) Deprecated, for removal: This API element is subject to removal in a future version. -
getData
public static HttpResponse getData(HttpRequest.RequestType type, URI uri, String post, Map<String, String> headers) Deprecated, for removal: This API element is subject to removal in a future version. -
getData
public static HttpResponse getData(HttpRequest.RequestType type, URI uri, String post, Map<String, String> headers, boolean isJson) Deprecated, for removal: This API element is subject to removal in a future version. -
generateJSONObject
public static void generateJSONObject(JSONObject obj, boolean isSuccess, String requestType, String data, String url, int responseCode, String exception, String exceptionMessage) throws JSONException Deprecated, for removal: This API element is subject to removal in a future version.Method that adds extra information to our returned object.- Parameters:
obj
-isSuccess
-requestType
-data
-url
-responseCode
-exception
-exceptionMessage
-- Throws:
JSONException
-
HttpClient
instead