Base class that defines methods for transferring content over HTTP. More...
Public Member Functions | |
fm.liveswitch.HttpResponseArgs | send (fm.liveswitch.HttpRequestArgs requestArgs) |
Sends a request synchronously. More... | |
void | sendAsync (fm.liveswitch.HttpRequestArgs requestArgs, fm.liveswitch.IAction1< fm.liveswitch.HttpResponseArgs > callback) |
Sends a request asynchronously. More... | |
abstract fm.liveswitch.HttpResponseArgs | sendBinary (fm.liveswitch.HttpRequestArgs requestArgs) |
Sends binary content synchronously using the specified arguments. More... | |
abstract void | sendBinaryAsync (fm.liveswitch.HttpRequestArgs requestArgs, fm.liveswitch.IAction1< fm.liveswitch.HttpResponseArgs > callback) |
Sends binary content asynchronously using the specified arguments. More... | |
abstract fm.liveswitch.HttpResponseArgs | sendText (fm.liveswitch.HttpRequestArgs requestArgs) |
Sends text content synchronously using the specified arguments. More... | |
abstract void | sendTextAsync (fm.liveswitch.HttpRequestArgs requestArgs, fm.liveswitch.IAction1< fm.liveswitch.HttpResponseArgs > callback) |
Sends text content asynchronously using the specified arguments. More... | |
abstract void | shutdown () |
Releases any resources and shuts down. More... | |
Static Public Member Functions | |
static void | addOnSendFinish (fm.liveswitch.IAction1< fm.liveswitch.HttpSendFinishArgs > value) |
Adds a handler that is raised before an HTTP request is sent. More... | |
static void | addOnSendStart (fm.liveswitch.IAction1< fm.liveswitch.HttpSendStartArgs > value) |
Adds a handler that is raised before an HTTP request is sent. More... | |
static String | addQueryToUrl (String url, String key) |
Escapes and adds a query parameter as a key/empty-value pair to a URL. More... | |
static String | addQueryToUrl (String url, String key, String value) |
Escapes and adds a query parameter as a key/value pair to a URL. More... | |
static String | getRandomWildcardCharacter () |
Gets a random wildcard character. More... | |
static String | getWildcardCharacters () |
Gets the wildcard characters used to replace asterisks in ReplaceWildcards. More... | |
static void | removeOnSendFinish (fm.liveswitch.IAction1< fm.liveswitch.HttpSendFinishArgs > value) |
Removes a handler that is raised before an HTTP request is sent. More... | |
static void | removeOnSendStart (fm.liveswitch.IAction1< fm.liveswitch.HttpSendStartArgs > value) |
Removes a handler that is raised before an HTTP request is sent. More... | |
static String | replaceWildcards (String url) |
Replaces asterisks in URLs with characters from WildcardCharacters. More... | |
static void | setWildcardCharacters (String value) |
Sets the wildcard characters used to replace asterisks in ReplaceWildcards. More... | |
Protected Member Functions | |
HttpTransfer () | |
Base class that defines methods for transferring content over HTTP.
|
protected |
|
static |
Adds a handler that is raised before an HTTP request is sent.
|
static |
Adds a handler that is raised before an HTTP request is sent.
|
static |
Escapes and adds a query parameter as a key/empty-value pair to a URL.
url | The URL with the query to which the key/value should be added. |
key | The key of the query parameter to add. |
|
static |
Escapes and adds a query parameter as a key/value pair to a URL.
url | The URL with the query to which the key/value should be added. |
key | The key of the query parameter to add. |
value | The value of the query parameter to add. |
|
static |
Gets a random wildcard character.
|
static |
Gets the wildcard characters used to replace asterisks in ReplaceWildcards.
|
static |
Removes a handler that is raised before an HTTP request is sent.
|
static |
Removes a handler that is raised before an HTTP request is sent.
|
static |
Replaces asterisks in URLs with characters from WildcardCharacters.
url | The URL with asterisks. |
fm.liveswitch.HttpResponseArgs fm.liveswitch.HttpTransfer.send | ( | fm.liveswitch.HttpRequestArgs | requestArgs | ) |
Sends a request synchronously.
requestArgs | The request parameters. |
void fm.liveswitch.HttpTransfer.sendAsync | ( | fm.liveswitch.HttpRequestArgs | requestArgs, |
fm.liveswitch.IAction1< fm.liveswitch.HttpResponseArgs > | callback | ||
) |
Sends a request asynchronously.
requestArgs | The request parameters. |
callback | The callback to execute with the resulting response. |
|
abstract |
Sends binary content synchronously using the specified arguments.
requestArgs | The request arguments. |
|
abstract |
Sends binary content asynchronously using the specified arguments.
requestArgs | The request arguments. |
callback | The callback to execute on success or failure. |
|
abstract |
Sends text content synchronously using the specified arguments.
requestArgs | The request arguments. |
|
abstract |
Sends text content asynchronously using the specified arguments.
requestArgs | The request arguments. |
callback | The callback to execute on success or failure. |
|
static |
Sets the wildcard characters used to replace asterisks in ReplaceWildcards.
|
abstract |
Releases any resources and shuts down.
Reimplemented in fm.liveswitch.HttpWebRequestTransfer.