|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.stjs.testing.jquery.MockjaxOptions
public class MockjaxOptions
| Field Summary | |
|---|---|
boolean |
async
|
String |
contentType
A string which specifies the content type for the response. |
Object |
data
In addition to the URL, match parameters. |
String |
etag
A string specifying a unique identifier referencing a specific version of the requested data. |
Map<String,? extends Object> |
headers
An object literal whos keys will be simulated as additional headers returned from the server for the request. |
boolean |
isTimeout
A boolean value that determines whether or not the mock will force a timeout on the request. |
Date |
lastModified
A date string specifying the mocked last-modified time for the request. |
String |
proxy
A string specifying a path to a file, from which the contents will be returned for the request. |
Callback1<Map<String,Object>> |
response
function(settings) {}, A function that allows for the dynamic setting of responseText/responseXML upon each request. |
Object |
responseText
A string specifying the mocked text, or a mocked object literal, for the request. |
long |
responseTime
An integer that specifies a simulated network and server latency (in milliseconds). |
String |
responseXML
A string specifying the mocked XML for the request. |
int |
status
An integer that specifies a valid server response code. |
String |
type
Specify what HTTP method to match, usually GET or POST. |
String |
url
A string or regular expression specifying the url of the request that the data should be mocked for. |
| Constructor Summary | |
|---|---|
MockjaxOptions()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String url
public Object data
public String type
public Map<String,? extends Object> headers
public int status
public long responseTime
public boolean isTimeout
public String contentType
public Callback1<Map<String,Object>> response
public Object responseText
public String responseXML
public String proxy
public Date lastModified
public String etag
public boolean async
| Constructor Detail |
|---|
public MockjaxOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||