public class WLRequestOptions
extends java.lang.Object
Constructor and Description |
---|
WLRequestOptions() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String value) |
void |
addParameter(java.lang.String name,
java.lang.String value) |
java.lang.Object |
getInvocationContext()
Return the user invocation context
|
<any> |
getOkHeaders() |
java.util.Map<java.lang.String,java.lang.String> |
getParameters() |
WLResponseListener |
getResponseListener() |
int |
getTimeout()
This method gets the request timeout that you currently use.
|
boolean |
isAZRequest() |
boolean |
isFromChallenge() |
boolean |
isJsonContentType() |
boolean |
isTextContentType() |
void |
setAZRequest(boolean isAZRequest)
Set true for authorization requests
|
void |
setFromChallenge(boolean flag) |
void |
setInvocationContext(java.lang.Object invocationContext)
User can add to the request any object,
that will be available on the callback (success/failure) functions.
|
void |
setJsonContentType(boolean isJsonContentType) |
void |
setResponseListener(WLResponseListener responseListener) |
void |
setTextContentType(boolean isTextContent) |
void |
setTimeout(int timeout)
This method sets a new timeout.
|
public int getTimeout()
WLResponseListener.onFailure(WLFailResponse)
method is called.
The value 0 indicates that there is no timeout.public void setTimeout(int timeout)
timeout
- The timeout, in milliseconds, to wait for the procedure invocation.
If the timeout expires, the WLResponseListener.onFailure(WLFailResponse)
method is called. The value 0 indicates that there is no timeout.public java.lang.Object getInvocationContext()
WLResponse
to the listener methods onSuccess and onFailure.public void setInvocationContext(java.lang.Object invocationContext)
invocationContext
- An object that is returned with WLResponse
to the listener methods onSuccess and onFailure.public java.util.Map<java.lang.String,java.lang.String> getParameters()
public WLResponseListener getResponseListener()
public void setResponseListener(WLResponseListener responseListener)
public void addParameter(java.lang.String name, java.lang.String value)
public void addHeader(java.lang.String name, java.lang.String value)
public <any> getOkHeaders()
public boolean isFromChallenge()
public void setFromChallenge(boolean flag)
public boolean isJsonContentType()
public void setJsonContentType(boolean isJsonContentType)
public boolean isAZRequest()
public void setAZRequest(boolean isAZRequest)
isAZRequest
- public boolean isTextContentType()
public void setTextContentType(boolean isTextContent)