public class EcRemote extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
async
Turn this property off to cause all remote web service calls to be
synchronous.
|
static int |
timeout
Timeout for AJAX requests
|
| Constructor and Description |
|---|
EcRemote() |
| Modifier and Type | Method and Description |
|---|---|
static void |
_delete(String url,
String signatureSheet,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
DELETEs something at a remote endpoint.
|
static void |
getExpectingObject(String server,
String service,
org.stjs.javascript.functions.Callback1<Object> success,
org.stjs.javascript.functions.Callback1<String> failure)
GETs something from a remote endpoint.
|
static void |
getExpectingString(String server,
String service,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
GETs something from a remote endpoint.
|
protected static org.stjs.javascript.functions.Callback1<String> |
getSuccessJSONCallback(org.stjs.javascript.functions.Callback1<Object> success,
org.stjs.javascript.functions.Callback1<String> failure) |
static void |
postExpectingObject(String server,
String service,
FormData fd,
org.stjs.javascript.functions.Callback1<Object> success,
org.stjs.javascript.functions.Callback1<String> failure)
POSTs a request to a remote endpoint.
|
static void |
postExpectingString(String server,
String service,
FormData fd,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
POSTs a request to a remote endpoint.
|
static void |
postWithHeadersExpectingString(String server,
String service,
FormData fd,
org.stjs.javascript.Map<String,String> headers,
org.stjs.javascript.functions.Callback1<String> success,
org.stjs.javascript.functions.Callback1<String> failure)
POSTs a request to a remote endpoint.
|
protected static String |
upgradeHttpToHttps(String url) |
static String |
urlAppend(String server,
String service) |
public static boolean async
public static int timeout
public static void postExpectingObject(String server, String service, FormData fd, org.stjs.javascript.functions.Callback1<Object> success, org.stjs.javascript.functions.Callback1<String> failure)
{string} - server Protocol, hostname and path to the remote handler.{string} - service Path to service to invoke.{FormData} - fd Form data to send as multi-part mime.{function(object)} - success Method that is invoked if the server
responds with a success (per jQuery ajax){function(string)} - failure Method that is invoked if the server
responds with an error (per jQuery ajax) or a non-200/300.public static void postExpectingString(String server, String service, FormData fd, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{string} - server Protocol, hostname and path to the remote handler.{string} - service Path to service to invoke.{FormData} - fd Form data to send as multi-part mime.{function(string)} - success Method that is invoked if the server
responds with a success (per jQuery ajax){function(string)} - failure Method that is invoked if the server
responds with an error (per jQuery ajax) or a non-200/300.public static void postWithHeadersExpectingString(String server, String service, FormData fd, org.stjs.javascript.Map<String,String> headers, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{string} - server Protocol, hostname and path to the remote handler.{string} - service Path to service to invoke.{FormData} - fd Form data to send as multi-part mime.{Object} - headers Headers to attach to the HTTP post.{function(string)} - success Method that is invoked if the server
responds with a success (per jQuery ajax){function(string)} - failure Method that is invoked if the server
responds with an error (per jQuery ajax) or a non-200/300.public static void getExpectingObject(String server, String service, org.stjs.javascript.functions.Callback1<Object> success, org.stjs.javascript.functions.Callback1<String> failure)
{string} - server Protocol, hostname and path to the remote handler.{string} - service Path to service to invoke.{function(object)} - success Method that is invoked if the server
responds with a success (per jQuery ajax){function(string)} - failure Method that is invoked if the server
responds with an error (per jQuery ajax) or a non-200/300.public static void getExpectingString(String server, String service, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{string} - server Protocol, hostname and path to the remote handler.{string} - service Path to service to invoke.{function(object)} - success Method that is invoked if the server
responds with a success (per jQuery ajax){function(string)} - failure Method that is invoked if the server
responds with an error (per jQuery ajax) or a non-200/300.public static void _delete(String url, String signatureSheet, org.stjs.javascript.functions.Callback1<String> success, org.stjs.javascript.functions.Callback1<String> failure)
{string} - server Protocol, hostname and path to the remote handler.{string} - service Path to service to invoke.{function(object)} - success Method that is invoked if the server
responds with a success (per jQuery ajax){function(string)} - failure Method that is invoked if the server
responds with an error (per jQuery ajax) or a non-200/300.Copyright © 2021 Eduworks Corporation. All rights reserved.