public class WebClient
extends java.lang.Object
| Constructor and Description |
|---|
WebClient() |
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
deleteFromRemote(java.net.URL url)
Delete a JSONObject from the server.
|
boolean |
existTest(java.net.URL url)
Performs a HEAD operation to test if something exists or not.
|
JSONObject |
getFromRemote(java.net.URL url)
Get a JSONObject back from the server.
|
JSONObject |
postToRemote(java.net.URL url,
JSONObject msg)
Send a JSONObject to this server as a POST and
get a JSONObject back with the response.
|
JSONObject |
postToRemote(java.net.URL url,
java.lang.String msg)
Send a String to this server as a POST and
get a JSONObject back with the response.
|
JSONObject |
putToRemote(java.net.URL url,
JSONObject msg)
Send a JSONObject to this server as a PUT and
get a JSONObject back with the response.
|
JSONObject |
requestToRemote(java.net.URL url,
JSONObject msg,
java.lang.String method,
java.lang.String auth) |
public JSONObject getFromRemote(java.net.URL url) throws java.lang.Exception
java.lang.Exceptionpublic JSONObject deleteFromRemote(java.net.URL url) throws java.lang.Exception
java.lang.Exceptionpublic JSONObject postToRemote(java.net.URL url, JSONObject msg) throws java.lang.Exception
java.lang.Exceptionpublic JSONObject postToRemote(java.net.URL url, java.lang.String msg) throws java.lang.Exception
java.lang.Exceptionpublic JSONObject putToRemote(java.net.URL url, JSONObject msg) throws java.lang.Exception
java.lang.Exceptionpublic JSONObject requestToRemote(java.net.URL url, JSONObject msg, java.lang.String method, java.lang.String auth) throws java.lang.Exception
java.lang.Exceptionpublic boolean existTest(java.net.URL url)
throws java.lang.Exception
java.lang.Exception