public abstract class FHRemote extends Object implements FHAct
FHAct.| Modifier and Type | Field and Description |
|---|---|
protected static String |
LOG_TAG |
protected FHActCallback |
mCallback |
protected android.content.Context |
mContext |
static String |
PATH_PREFIX |
| Constructor and Description |
|---|
FHRemote(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract cz.msebera.android.httpclient.Header[] |
buildHeaders(cz.msebera.android.httpclient.Header[] pHeaders) |
void |
execute(FHActCallback pCallback)
Executes the request synchronously.
|
void |
executeAsync()
Executes the request asynchronously.
|
void |
executeAsync(FHActCallback pCallback)
Executes the request asynchronously.
|
protected String |
getApiURl() |
protected abstract String |
getPath() |
protected abstract JSONObject |
getRequestArgs() |
void |
setCallback(FHActCallback pCallback)
Sets the callback function to be executed when the action is finished.
|
public static final String PATH_PREFIX
protected static String LOG_TAG
protected FHActCallback mCallback
protected android.content.Context mContext
public void executeAsync()
FHActFHAct.setCallback(FHActCallback pCallback) when the request
finishes.executeAsync in interface FHActpublic void executeAsync(FHActCallback pCallback)
FHActexecuteAsync in interface FHActpCallback - the callback functionpublic void execute(FHActCallback pCallback)
FHActpublic void setCallback(FHActCallback pCallback)
FHActsetCallback in interface FHActpCallback - the callback functionprotected String getApiURl()
protected abstract String getPath()
protected abstract JSONObject getRequestArgs()
protected abstract cz.msebera.android.httpclient.Header[] buildHeaders(cz.msebera.android.httpclient.Header[] pHeaders)
Copyright © 2016 Red Hat. All rights reserved.