public class RequestGuardImpl extends Object implements RequestGuard
Java API for interception of HTTP/XMLHttpRequest requests.
Needs to have PageExtensions installed in the current page using
PageExtensionsImpl.install().
| Constructor and Description |
|---|
RequestGuardImpl() |
| Modifier and Type | Method and Description |
|---|---|
RequestType |
clearRequestDone()
Clears the request type indicated on the page, gives possibility to intercept subsequent requests.
|
RequestType |
getRequestDone()
Obtains the done requestType from page.
|
void |
waitForRequest()
Waits for change of RequestType indicated on the page from NONE to other value.
|
public RequestType getRequestDone()
getRequestDone in interface RequestGuardIllegalStateException - when the unknown type of request was obtainedpublic RequestType clearRequestDone()
Clears the request type indicated on the page, gives possibility to intercept subsequent requests.
Returns the last RequestType set.
clearRequestDone in interface RequestGuardIllegalStateException - when the unknown type of request was obtainedpublic void waitForRequest()
waitForRequest in interface RequestGuardCopyright © 2013 JBoss by Red Hat. All Rights Reserved.