|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public XHRMultipart
Provides Dojo XHR support. Requests are batched together via a transaction concept - Dojo XHR requests which are made between the start and end transaction calls will be batched. This would include any Dojo API's which would use Dojo XHR. If the com.ibm.mashups.multipart.correlatehosts Configuration Service property is set to true, multipart requests will be split by hostname.
Method Summary | |
---|---|
void |
startTransaction()
Begins a multipart transaction. |
DeferredOperation |
endTransactionDeferred()
Ends a multipart transaction and submits the multipart request to the server. |
void |
endTransaction(Object callback,
Object[] parameters)
Deprecated. Use endTransactionDeferred instead. |
void |
suspendTransaction()
Suspends a mulitpart transaction, allowing normal XHR requests to be made. |
void |
resumeTransaction()
Resumes a mulitpart transaction. |
Boolean |
isTransaction()
Returns if there is an active multipart transaction |
Method Detail |
---|
void startTransaction()
DeferredOperation endTransactionDeferred()
null
void endTransaction(Object callback, Object[] parameters)
callback
-
the callback funtion in the format of Function(Object[] params)
. May be null
params
- the parameters passed into the callbackparameters
-
optional array of parameters to be passed on to the callback function. May be null
void suspendTransaction()
void resumeTransaction()
Boolean isTransaction()
true
if there is an active multipart transaction, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |