Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.guard
Class RequestGuardFactory

java.lang.Object
  extended by org.jboss.arquillian.ajocado.guard.RequestGuardFactory

public final class RequestGuardFactory
extends Object

The factory for shortening use of RequestGuardInterceptors in code.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
static GrapheneSelenium guard(GrapheneSelenium selenium, RequestType requestExpected)
          Shortcut for registering a guard for specified request type on given selenium object.
static GrapheneSelenium guardInterlayed(GrapheneSelenium selenium, RequestType requestExpected)
           Shortcut for registering a guard for specified request type on given selenium object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

guard

public static GrapheneSelenium guard(GrapheneSelenium selenium,
                                     RequestType requestExpected)
Shortcut for registering a guard for specified request type on given selenium object.

Parameters:
selenium - where should be registered the given request type guard
requestExpected - the request type to be guarded if the expected request is allowed to be preceeded by another request type
Returns:
the selenium guarded to use XMLHttpRequest

guardInterlayed

public static GrapheneSelenium guardInterlayed(GrapheneSelenium selenium,
                                               RequestType requestExpected)

Shortcut for registering a guard for specified request type on given selenium object.

This guard guards the right request type but allows interlaying of the request by another one of other type.

Parameters:
selenium - where should be registered the given request type guard
requestExpected - the request type to be guarded
Returns:
the selenium guarded to use XMLHttpRequest

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.