HttpUtil.ContentType, HttpUtil.RequestMethod| Modifier and Type | Method and Description |
|---|---|
static HttpUtilImpl |
getInstance()
Returns the singleton instance of HttpUtilImpl.
|
<T> T |
request(@NonNull URL url,
HttpUtil.RequestMethod method,
Object request,
Map<String,String> headers,
Class<T> clazz)
Sends a HTTP request and returns the response.
|
String |
request(@NonNull URL url,
HttpUtil.RequestMethod method,
String query)
Sends a HTTP request and returns the response.
|
String |
request(@NonNull URL url,
HttpUtil.RequestMethod method,
String query,
HttpUtil.ContentType contentType)
Sends a HTTP request and returns the response.
|
String |
request(@NonNull URL url,
HttpUtil.RequestMethod method,
String query,
HttpUtil.ContentType contentType,
Map<String,String> headers)
Sends a HTTP request and returns the response.
|
String |
request(@NonNull URL url,
HttpUtil.RequestMethod method,
String query,
Map<String,String> headers)
Sends a HTTP request and returns the response.
|
<T> List<T> |
requestList(@NonNull URL url,
HttpUtil.RequestMethod method,
Object request,
Map<String,String> headers,
Class<T[]> clazz) |
public <T> T request(@NonNull
@NonNull URL url,
HttpUtil.RequestMethod method,
Object request,
Map<String,String> headers,
Class<T> clazz)
throws IOException,
WebpayException
request in interface HttpUtilIOExceptionWebpayExceptionpublic <T> List<T> requestList(@NonNull @NonNull URL url, HttpUtil.RequestMethod method, Object request, Map<String,String> headers, Class<T[]> clazz) throws IOException, WebpayException
requestList in interface HttpUtilIOExceptionWebpayExceptionpublic String request(@NonNull @NonNull URL url, HttpUtil.RequestMethod method, String query) throws IOException, WebpayException
request in interface HttpUtilIOExceptionWebpayExceptionpublic String request(@NonNull @NonNull URL url, HttpUtil.RequestMethod method, String query, HttpUtil.ContentType contentType) throws IOException, WebpayException
request in interface HttpUtilIOExceptionWebpayExceptionpublic String request(@NonNull @NonNull URL url, HttpUtil.RequestMethod method, String query, Map<String,String> headers) throws IOException, WebpayException
request in interface HttpUtilIOExceptionWebpayExceptionpublic String request(@NonNull @NonNull URL url, HttpUtil.RequestMethod method, String query, HttpUtil.ContentType contentType, Map<String,String> headers) throws IOException, WebpayException
request in interface HttpUtilIOExceptionWebpayExceptionpublic static HttpUtilImpl getInstance()
Copyright © 2018–2024. All rights reserved.