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 <T> T |
postOrGet(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 <T> T postOrGet(URI uri, SSLSocketFactory socketFactory, HostnameVerifier hostnameVerifier, String authorization, String contentType, String body, Class<T> responseType) throws IOException
IOException
Copyright © 2019. All rights reserved.