|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.arquillian.ajocado.guard.RequestGuardInterceptor
public class RequestGuardInterceptor
The Guard which guards that request what was expected to be done will be actually done.
Constructor Summary | |
---|---|
RequestGuardInterceptor(RequestType requestExpected,
boolean interlayed)
Constructs the guard with predefined expected RequestType |
Method Summary | |
---|---|
void |
doAfterCommand()
Waits for changing the requestDone flag (or for timeout, when flag stay to be NONE). |
void |
doBeforeCommand()
Install the PageExtensions (which is used to figure out, what requestType was actually done) and clear the request type to NONE state. |
void |
intercept(CommandContext ctx)
Enfolds the command with guarding code to detect request type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestGuardInterceptor(RequestType requestExpected, boolean interlayed)
requestExpected
- the RequestType which is expected to be doneinterlayed
- indicates whenever the request can be interlayed by another requestMethod Detail |
---|
public void intercept(CommandContext ctx) throws CommandInterceptorException
intercept
in interface CommandInterceptor
CommandInterceptorException
public void doBeforeCommand()
public void doAfterCommand()
Waits for changing the requestDone flag (or for timeout, when flag stay to be NONE).
Then figure out what requestType was actually done and compare to expected one.
RequestGuardException
- when done requestType doesn't equal to expected one
|
Graphene Implementation 1.0.0.CR3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |