public class HttpUtil extends Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
get(URI uri,
SSLSocketFactory socketFactory,
HostnameVerifier hostnameVerifier,
String authorization,
Class<T> responseType) |
static <T> T |
get(URI uri,
SSLSocketFactory socketFactory,
String authorization,
Class<T> responseType) |
static <T> T |
get(URI uri,
String authorization,
Class<T> responseType) |
static <T> T |
post(URI uri,
SSLSocketFactory socketFactory,
HostnameVerifier verifier,
String authorization,
String contentType,
String body,
Class<T> responseType) |
static <T> T |
post(URI uri,
SSLSocketFactory socketFactory,
String authorization,
String contentType,
String body,
Class<T> responseType) |
static <T> T |
post(URI uri,
String authorization,
String contentType,
String body,
Class<T> responseType) |
static void |
put(URI uri,
SSLSocketFactory socketFactory,
HostnameVerifier verifier,
String authorization,
String contentType,
String body) |
static void |
put(URI uri,
SSLSocketFactory socketFactory,
String authorization,
String contentType,
String body) |
static void |
put(URI uri,
String authorization,
String contentType,
String body) |
static <T> T |
request(URI uri,
SSLSocketFactory socketFactory,
HostnameVerifier hostnameVerifier,
String authorization,
String contentType,
String body,
Class<T> responseType) |
public static <T> T get(URI uri, String authorization, Class<T> responseType) throws IOException
IOException
public static <T> T get(URI uri, SSLSocketFactory socketFactory, String authorization, Class<T> responseType) throws IOException
IOException
public static <T> T get(URI uri, SSLSocketFactory socketFactory, HostnameVerifier hostnameVerifier, String authorization, Class<T> responseType) throws IOException
IOException
public static <T> T post(URI uri, String authorization, String contentType, String body, Class<T> responseType) throws IOException
IOException
public static <T> T post(URI uri, SSLSocketFactory socketFactory, String authorization, String contentType, String body, Class<T> responseType) throws IOException
IOException
public static <T> T post(URI uri, SSLSocketFactory socketFactory, HostnameVerifier verifier, String authorization, String contentType, String body, Class<T> responseType) throws IOException
IOException
public static void put(URI uri, String authorization, String contentType, String body) throws IOException
IOException
public static void put(URI uri, SSLSocketFactory socketFactory, String authorization, String contentType, String body) throws IOException
IOException
public static void put(URI uri, SSLSocketFactory socketFactory, HostnameVerifier verifier, String authorization, String contentType, String body) throws IOException
IOException
public static <T> T request(URI uri, SSLSocketFactory socketFactory, HostnameVerifier hostnameVerifier, String authorization, String contentType, String body, Class<T> responseType) throws IOException
IOException
Copyright © 2021. All rights reserved.