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 enumDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgenerateJSONObject(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 HttpResponseDeprecated, for removal: This API element is subject to removal in a future version.static HttpResponsegetData(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 HttpResponseDeprecated, for removal: This API element is subject to removal in a future version.static HttpResponsegetData(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
-
HttpClientinstead