public class JQueryAjaxSettings extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<Object> |
accepts
The content type sent in the request header that tells the server what kind of response it will accept in return.
|
Objs.Property<Boolean> |
async
By default, all requests are sent asynchronously (i.e. this is set to true by default).
|
Objs.Property<Boolean> |
cache
If set to false, it will force requested pages not to be cached by the browser.
|
Objs.Property<Objs> |
contents
An object of string/regular-expression pairs that determine how jQuery will parse the response, given its content type.
|
Objs.Property<Object> |
contentType |
Objs.Property<Object> |
context
This object will be made the context of all Ajax-related callbacks.
|
Objs.Property<Objs> |
converters
An object containing dataType-to-dataType converters.
|
Objs.Property<Boolean> |
crossDomain
If you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true.
|
Objs.Property<Object> |
data
Data to be sent to the server.
|
Objs.Property<String> |
dataType
The type of data that you're expecting back from the server.
|
Objs.Property<Boolean> |
global
Whether to trigger global Ajax event handlers for this request.
|
Objs.Property<Objs> |
headers
An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport.
|
Objs.Property<Boolean> |
ifModified
Allow the request to be successful only if the response has changed since the last request.
|
Objs.Property<Boolean> |
isLocal
Allow the current environment to be recognized as "local," (e.g. the filesystem), even if jQuery does not recognize it as such by default.
|
Objs.Property<Object> |
jsonp
Override the callback function name in a jsonp request.
|
Objs.Property<Object> |
jsonpCallback
Specify the callback function name for a JSONP request.
|
Objs.Property<String> |
method
The HTTP method to use for the request (e.g.
|
Objs.Property<String> |
mimeType
A mime type to override the XHR mime type.
|
Objs.Property<String> |
password
A password to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
Objs.Property<Boolean> |
processData
By default, data passed in to the data option as an object (technically, anything other than a string) will be processed and transformed into a query string, fitting to the default content-type "application/x-www-form-urlencoded".
|
Objs.Property<String> |
scriptCharset
Only applies when the "script" transport is used (e.g., cross-domain requests with "jsonp" or "script" dataType and "GET" type).
|
Objs.Property<Objs> |
statusCode
An object of numeric HTTP codes and functions to be called when the response has the corresponding code. f the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback.
|
Objs.Property<Number> |
timeout
Set a timeout (in milliseconds) for the request.
|
Objs.Property<Boolean> |
traditional
Set this to true if you wish to use the traditional style of param serialization.
|
Objs.Property<String> |
type
The type of request to make ("POST" or "GET"), default is "GET".
|
Objs.Property<String> |
url
A string containing the URL to which the request is sent.
|
Objs.Property<String> |
username
A username to be used with XMLHttpRequest in response to an HTTP access authentication request.
|
Objs.Property<Object> |
xhr
Callback for creating the XMLHttpRequest object.
|
Objs.Property<Objs> |
xhrFields
An object of fieldName-fieldValue pairs to set on the native XHR object.
|
Modifier | Constructor and Description |
---|---|
protected |
JQueryAjaxSettings(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static JQueryAjaxSettings |
$as(Object obj) |
Boolean |
async() |
Object |
beforeSend(JQueryXHR jqXHR,
JQueryAjaxSettings settings)
A pre-request callback function that can be used to modify the jqXHR (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent.
|
Boolean |
cache() |
Object |
complete(JQueryXHR jqXHR,
String textStatus)
A function to be called when the request finishes (after success and error callbacks are executed).
|
Boolean |
crossDomain() |
Object |
dataFilter(Object data,
Object ty)
A function to be used to handle the raw response data of XMLHttpRequest.This is a pre-filtering function to sanitize the response.
|
String |
dataType() |
Object |
error(JQueryXHR jqXHR,
String textStatus,
String errorThrown)
A function to be called if the request fails.
|
Boolean |
global() |
Boolean |
ifModified() |
Boolean |
isLocal() |
String |
method() |
String |
mimeType() |
String |
password() |
Boolean |
processData() |
String |
scriptCharset() |
Object |
success(Object data,
String textStatus,
JQueryXHR jqXHR)
A function to be called if the request succeeds.
|
Number |
timeout() |
Boolean |
traditional() |
String |
type() |
String |
url() |
String |
username() |
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<Object> accepts
public Objs.Property<Boolean> async
public Objs.Property<Boolean> cache
public Objs.Property<Objs> contents
public Objs.Property<Object> contentType
public Objs.Property<Object> context
public Objs.Property<Objs> converters
public Objs.Property<Boolean> crossDomain
public Objs.Property<Object> data
public Objs.Property<String> dataType
public Objs.Property<Boolean> global
public Objs.Property<Objs> headers
public Objs.Property<Boolean> ifModified
public Objs.Property<Boolean> isLocal
public Objs.Property<Object> jsonp
public Objs.Property<Object> jsonpCallback
public Objs.Property<String> method
public Objs.Property<String> mimeType
public Objs.Property<String> password
public Objs.Property<Boolean> processData
public Objs.Property<String> scriptCharset
public Objs.Property<Objs> statusCode
public Objs.Property<Number> timeout
public Objs.Property<Boolean> traditional
public Objs.Property<String> type
public Objs.Property<String> url
public Objs.Property<String> username
public Objs.Property<Object> xhr
public Objs.Property<Objs> xhrFields
protected JQueryAjaxSettings(Objs.Constructor<?> c, Object js)
public static JQueryAjaxSettings $as(Object obj)
public Boolean async()
public Boolean cache()
public Boolean crossDomain()
public String dataType()
public Boolean global()
public Boolean ifModified()
public Boolean isLocal()
public String method()
public String mimeType()
public String password()
public Boolean processData()
public String scriptCharset()
public Number timeout()
public Boolean traditional()
public String type()
public String url()
public String username()
public Object beforeSend(JQueryXHR jqXHR, JQueryAjaxSettings settings)
public Object complete(JQueryXHR jqXHR, String textStatus)
public Object dataFilter(Object data, Object ty)
public Object error(JQueryXHR jqXHR, String textStatus, String errorThrown)
public Object success(Object data, String textStatus, JQueryXHR jqXHR)
Copyright © 2018. All rights reserved.