public class HTTPRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HTTPRequest.HTTPMETHOD
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
address
Deprecated.
|
static String |
APPLICATION_JSON_CHARSET_UTF_8
Deprecated.
|
static String |
PARAM_EQUALS
Deprecated.
|
static String |
PARAM_SEPARATOR
Deprecated.
|
static String |
PARAM_STARTER
Deprecated.
|
static String |
PATH_SEPARATOR
Deprecated.
|
protected String |
userAgent
Deprecated.
|
static String |
UTF8
Deprecated.
|
| Constructor and Description |
|---|
HTTPRequest(String address,
String userAgent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
<C> C |
call(Class<C> clz,
String path,
HTTPRequest.HTTPMETHOD method)
Deprecated.
|
<C> C |
call(Class<C> clz,
String path,
HTTPRequest.HTTPMETHOD method,
Map<String,String> parameters)
Deprecated.
|
protected <C> C |
call(Class<C> clz,
String path,
HTTPRequest.HTTPMETHOD method,
Map<String,String> parameters,
String body)
Deprecated.
|
<C> C |
call(Class<C> clz,
String path,
HTTPRequest.HTTPMETHOD method,
String body)
Deprecated.
|
protected HttpURLConnection |
getConnection(String path,
String urlParameters,
HTTPRequest.HTTPMETHOD method,
String body)
Deprecated.
|
protected HttpURLConnection |
getConnection(URL url,
HTTPRequest.HTTPMETHOD method,
String body)
Deprecated.
|
protected String |
getParametersDataString(Map<String,String> parameters)
Deprecated.
Builds a data string from the map of params.
|
protected StringBuilder |
getStringBuilder(InputStream inputStream)
Deprecated.
|
protected URL |
getURL(String urlString)
Deprecated.
|
protected URL |
getURL(String address,
String path,
String urlParameters)
Deprecated.
|
public static final String APPLICATION_JSON_CHARSET_UTF_8
public static final String PATH_SEPARATOR
public static final String PARAM_STARTER
public static final String PARAM_EQUALS
public static final String PARAM_SEPARATOR
public static final String UTF8
protected final String address
protected final String userAgent
protected String getParametersDataString(Map<String,String> parameters) throws UnsupportedEncodingException
parameters - UnsupportedEncodingExceptionprotected URL getURL(String address, String path, String urlParameters) throws MalformedURLException
MalformedURLExceptionprotected URL getURL(String urlString) throws MalformedURLException
MalformedURLExceptionprotected HttpURLConnection getConnection(String path, String urlParameters, HTTPRequest.HTTPMETHOD method, String body) throws Exception
Exceptionprotected HttpURLConnection getConnection(URL url, HTTPRequest.HTTPMETHOD method, String body) throws Exception
Exceptionprotected StringBuilder getStringBuilder(InputStream inputStream) throws IOException
IOExceptionpublic <C> C call(Class<C> clz, String path, HTTPRequest.HTTPMETHOD method) throws Exception
Exceptionpublic <C> C call(Class<C> clz, String path, HTTPRequest.HTTPMETHOD method, Map<String,String> parameters) throws Exception
Exceptionpublic <C> C call(Class<C> clz, String path, HTTPRequest.HTTPMETHOD method, String body) throws Exception
ExceptionCopyright © 2018. All Rights Reserved.