Package com.ultikits.ultitools.utils
Class SimpleHttpClient
java.lang.Object
com.ultikits.ultitools.utils.SimpleHttpClient
Deprecated, for removal: This API element is subject to removal in a future version.
Simple HTTP client implementation using HttpURLConnection.
Replaces Hutool-http to reduce dependency size.
As of 6.3.1 nothing in the framework uses it: it carried the protocol v1 REST calls, and the protocol 2.0.0 client has its own transport. It still sends the requests it is given, as before.
- Since:
- 6.2.0
- Author:
- wisdomme
- Scheduled removal version:
- 6.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version.There is no replacement, as forSimpleHttpClient. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringbuildFormData(Map<String, Object> data) Deprecated, for removal: This API element is subject to removal in a future version.private static SimpleHttpClient.Responseexecute(String method, String urlStr, Map<String, String> headers, Map<String, Object> formData, String jsonBody) Deprecated, for removal: This API element is subject to removal in a future version.static SimpleHttpClient.ResponseDeprecated, for removal: This API element is subject to removal in a future version.static SimpleHttpClient.ResponseDeprecated, for removal: This API element is subject to removal in a future version.static SimpleHttpClient.ResponseDeprecated, for removal: This API element is subject to removal in a future version.static SimpleHttpClient.ResponseDeprecated, for removal: This API element is subject to removal in a future version.private static StringDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
SimpleHttpClient
public SimpleHttpClient()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
get
Deprecated, for removal: This API element is subject to removal in a future version. -
get
Deprecated, for removal: This API element is subject to removal in a future version. -
post
public static SimpleHttpClient.Response post(String urlStr, Map<String, String> headers, Map<String, Object> formData) Deprecated, for removal: This API element is subject to removal in a future version. -
post
public static SimpleHttpClient.Response post(String urlStr, Map<String, String> headers, String jsonBody) Deprecated, for removal: This API element is subject to removal in a future version. -
execute
private static SimpleHttpClient.Response execute(String method, String urlStr, Map<String, String> headers, Map<String, Object> formData, String jsonBody) Deprecated, for removal: This API element is subject to removal in a future version. -
buildFormData
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
UnsupportedEncodingException
-
readResponse
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
IOException
-
HttpURLConnectionor an HTTP client library of your own; the framework no longer needs a general HTTP helper. Removed in 6.4.0.