if (location.href.indexOf('is-external=true') == -1) { parent.document.; } //-->
allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //-->
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
com.worklight.wlclient.api
Class WLRequestOptions
- java.lang.Object
- com.worklight.wlclient.api.WLRequestOptions
public class WLRequestOptions extends java.lang.Object
This class changes the timeout and invocation context.
Method Summary
Methods Modifier and Type Method and Description java.lang.Object getInvocationContext()Return the user invocation context
WLResponseListener getResponseListener() int getTimeout()This method gets the request timeout that you currently use.
boolean isTextContentType() void setAZRequest(boolean isAZRequest)Set true for authorization requests
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 setTextContentType(boolean isTextContent) void setTimeout(int timeout)This method sets a new timeout.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail
getTimeout
public int getTimeout()
This method gets the request timeout that you currently use. The default request timeout is 10 seconds.
- Returns:
- 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.
setTimeout
public void setTimeout(int timeout)
This method sets a new timeout.
- Parameters:
timeout - The timeout, in milliseconds, to wait for the procedure invocation. If the timeout expires, theWLResponseListener.onFailure(WLFailResponse)method is called. The value 0 indicates that there is no timeout.
getInvocationContext
public java.lang.Object getInvocationContext()
Return the user invocation context
- Returns:
- An object that is returned with
WLResponseto the listener methods onSuccess and onFailure.
We can use this object to identify and distinguish different invokeProcedure calls.
This object is returned as is to the listener methods
setInvocationContext
public void setInvocationContext(java.lang.Object invocationContext)
User can add to the request any object, that will be available on the callback (success/failure) functions.
- Parameters:
invocationContext - An object that is returned withWLResponse
to the listener methods onSuccess and onFailure.
We can use this object to identify and distinguish different invokeProcedure calls.
This object is returned as is to the listener methods.
getResponseListener
public WLResponseListener getResponseListener()
setAZRequest
public void setAZRequest(boolean isAZRequest)
Set true for authorization requests
- Parameters:
isAZRequest -
isTextContentType
public boolean isTextContentType()
setTextContentType
public void setTextContentType(boolean isTextContent)
allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //-->
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.