Ajocado Implementation 1.0.0.Alpha2

org.jboss.arquillian.ajocado.request
Class RequestInterceptorImpl

java.lang.Object
  extended by org.jboss.arquillian.ajocado.request.RequestInterceptorImpl
All Implemented Interfaces:
RequestInterceptor

public class RequestInterceptorImpl
extends Object
implements RequestInterceptor

Java API for interception of HTTP/XMLHttpRequest requests.

Needs to have PageExtensions installed in the current page using PageExtensionsImpl.install().

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
RequestInterceptorImpl()
           
 
Method Summary
 RequestType clearRequestTypeDone()
           Clears the request type indicated on the page, gives possibility to intercept subsequent requests.
 RequestType getRequestTypeDone()
          Obtains the done requestType from page.
 void waitForRequestTypeChange()
          Waits for change of RequestType indicated on the page from NONE to other value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInterceptorImpl

public RequestInterceptorImpl()
Method Detail

getRequestTypeDone

public RequestType getRequestTypeDone()
Obtains the done requestType from page.

Specified by:
getRequestTypeDone in interface RequestInterceptor
Returns:
the RequestType what was done
Throws:
IllegalStateException - when the unknown type of request was obtained

clearRequestTypeDone

public RequestType clearRequestTypeDone()

Clears the request type indicated on the page, gives possibility to intercept subsequent requests.

Returns the last RequestType set.

Specified by:
clearRequestTypeDone in interface RequestInterceptor
Returns:
the last RequestType done
Throws:
IllegalStateException - when the unknown type of request was obtained

waitForRequestTypeChange

public void waitForRequestTypeChange()
Waits for change of RequestType indicated on the page from NONE to other value.

Specified by:
waitForRequestTypeChange in interface RequestInterceptor

Ajocado Implementation 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.