|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gwtext.client.core.JsObject
com.gwtext.client.core.Connection
com.gwtext.client.core.Ajax
public class Ajax
Global Ajax request class. This class is a singleton and cannot be created directly.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.gwtext.client.core.Connection |
|---|
Connection.Method |
| Field Summary |
|---|
| Fields inherited from class com.gwtext.client.core.Connection |
|---|
GET, POST |
| Fields inherited from class com.gwtext.client.core.JsObject |
|---|
jsObj |
| Method Summary | |
|---|---|
static Ajax |
getInstance()
|
java.lang.String |
serializeForm(java.lang.String formId)
Serialize the passed form into a url encoded string |
void |
setAutoAbort(boolean autoAbort)
Whether a new request should abort any pending requests. |
void |
setDefaultHeaders(NameValuePair[] defaultHeaders)
Request headers which are added to each request made by this object. |
void |
setDisableCaching(boolean disableCaching)
True to add a unique cache-buster param to GET requests. |
void |
setExtraParams(UrlParam[] params)
Extra parameters to each request made by this object. |
void |
setMethod(Connection.Method method)
The default HTTP method to be used for requests. |
void |
setTimeout(int timeout)
The timeout in milliseconds to be used for requests. |
void |
setUrl(java.lang.String url)
The default URL to be used for requests to the server. |
| Methods inherited from class com.gwtext.client.core.Connection |
|---|
abort, abort, addListener, isLoading, isLoading, request, request |
| Methods inherited from class com.gwtext.client.core.JsObject |
|---|
getJsObj, getProperties, isCreated, setJsObj |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Ajax getInstance()
public void setAutoAbort(boolean autoAbort)
autoAbort - defaults to falsepublic void setDefaultHeaders(NameValuePair[] defaultHeaders)
defaultHeaders - default header paramspublic void setDisableCaching(boolean disableCaching)
disableCaching - defaults to truepublic void setExtraParams(UrlParam[] params)
params - extra paramspublic void setMethod(Connection.Method method)
method - defaults to undefined; if not set but parms are present will use POST, otherwise GETpublic void setTimeout(int timeout)
timeout - defaults to 30000public void setUrl(java.lang.String url)
url - the url to make the request topublic java.lang.String serializeForm(java.lang.String formId)
formId - the form id
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||