public class WLRequest
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
WLRequest.RequestPaths |
Constructor and Description |
---|
WLRequest(WLRequestListener wlRequestListener,
WLRequestOptions wlRequestData,
WLConfig wlConfig,
Context context) |
WLRequest(WLRequestListener wlRequestListener,
WLRequestOptions wlRequestData,
WLConfig wlConfig,
Context context,
boolean shouldFailOnChallengeCancel) |
Modifier and Type | Method and Description |
---|---|
static void |
addRequestPiggybacker(WLRequestPiggybacker piggybacker) |
WLConfig |
getConfig() |
Context |
getContext() |
RequestMethod |
getMethod() |
Request |
getOkRequest() |
WLRequestOptions |
getOptions() |
WLRequestListener |
getRequestListener() |
void |
makeRequest(java.lang.String requestPath) |
void |
makeRequest(java.lang.String requestPath,
boolean isFullPath)
Create http request and send it for asynchronous execution
|
void |
processFailureResponse(WLResponse response) |
void |
removeExpectedAnswer(java.lang.String securityCheck) |
static void |
removeRequestPiggybacker(WLRequestPiggybacker piggybacker) |
void |
requestFinished(WLResponse response)
the try catch structure is used to separate platform exceptions from application code exceptions
(we dont want to wrap the application code in try catch)
|
void |
resendRequest() |
void |
setMethod(RequestMethod method) |
boolean |
shouldFailOnChallengeCancel() |
void |
submitAnswer(java.lang.String securityCheck,
java.lang.Object answer) |
public WLRequest(WLRequestListener wlRequestListener, WLRequestOptions wlRequestData, WLConfig wlConfig, Context context)
public WLRequest(WLRequestListener wlRequestListener, WLRequestOptions wlRequestData, WLConfig wlConfig, Context context, boolean shouldFailOnChallengeCancel)
public static void addRequestPiggybacker(WLRequestPiggybacker piggybacker)
public static void removeRequestPiggybacker(WLRequestPiggybacker piggybacker)
public boolean shouldFailOnChallengeCancel()
public void makeRequest(java.lang.String requestPath)
public void makeRequest(java.lang.String requestPath, boolean isFullPath)
requestPath
- - the request path (for example: init,query etc...)isFullPath
- indicate that the path is full and should NOT be infered to
start from appURL onlypublic void requestFinished(WLResponse response)
response
- public WLRequestListener getRequestListener()
public Request getOkRequest()
public WLRequestOptions getOptions()
public WLConfig getConfig()
public Context getContext()
public void submitAnswer(java.lang.String securityCheck, java.lang.Object answer)
public void removeExpectedAnswer(java.lang.String securityCheck)
public void processFailureResponse(WLResponse response)
public void resendRequest()
public RequestMethod getMethod()
public void setMethod(RequestMethod method)