public class HttpUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static HttpClient |
client |
static java.lang.String |
JSONWS_PATH_61 |
static java.lang.String |
JSONWS_PATH_62 |
| Constructor and Description |
|---|
HttpUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cancel(java.lang.Object tag) |
static Response |
download(Session session,
java.lang.String url,
FileProgressCallback callback) |
static java.lang.String |
encodeURLPath(java.lang.String path) |
static java.lang.String |
getURL(Session session,
java.lang.String path) |
static org.json.JSONArray |
post(Session session,
org.json.JSONArray commands) |
static org.json.JSONArray |
post(Session session,
org.json.JSONObject command) |
static Response |
send(Request request) |
static void |
setJSONWSPath(java.lang.String jsonwsPath) |
static void |
setRefreshHandlerFactory(AuthenticationRefreshHandlerFactory factory) |
static org.json.JSONArray |
upload(Session session,
org.json.JSONObject command) |
static org.json.JSONArray |
upload(Session session,
org.json.JSONObject command,
java.util.List<Protocol> protocols) |
public static final java.lang.String JSONWS_PATH_61
public static final java.lang.String JSONWS_PATH_62
protected static HttpClient client
public static void cancel(java.lang.Object tag)
public static Response download(Session session, java.lang.String url, FileProgressCallback callback) throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String encodeURLPath(java.lang.String path)
public static java.lang.String getURL(Session session, java.lang.String path)
public static org.json.JSONArray post(Session session, org.json.JSONArray commands) throws java.lang.Exception
java.lang.Exceptionpublic static org.json.JSONArray post(Session session, org.json.JSONObject command) throws java.lang.Exception
java.lang.Exceptionpublic static Response send(Request request) throws java.lang.Exception
java.lang.Exceptionpublic static void setJSONWSPath(java.lang.String jsonwsPath)
public static void setRefreshHandlerFactory(AuthenticationRefreshHandlerFactory factory)
public static org.json.JSONArray upload(Session session, org.json.JSONObject command) throws java.lang.Exception
java.lang.Exceptionpublic static org.json.JSONArray upload(Session session, org.json.JSONObject command, java.util.List<Protocol> protocols) throws java.lang.Exception
java.lang.Exception