Example usage for org.apache.wicket.request.cycle RequestCycle getListeners

List of usage examples for org.apache.wicket.request.cycle RequestCycle getListeners

Introduction

In this page you can find the example usage for org.apache.wicket.request.cycle RequestCycle getListeners.

Prototype

public RequestCycleListenerCollection getListeners() 

Source Link

Usage

From source file:gr.interamerican.wicket.bo2.protocol.http.Bo2WicketRequestCycle.java

License:Open Source License

/**
 * Calls <code>onBeginRequest()</code> on the specified cycle.
 *
 * Exposes the protected method. Should be used only by test
 * classes in order to emulate the wicket request-response cycle.
 *
 * @param cycle//from ww  w.  j a va2  s. c  o  m
 *        {@link RequestCycle} on which the method is
 *        invoked.
 */
public static void beginRequest(RequestCycle cycle) {
    cycle.getListeners().onBeginRequest(cycle);
}

From source file:gr.interamerican.wicket.bo2.protocol.http.Bo2WicketRequestCycle.java

License:Open Source License

/**
 * Calls <code>onEndRequest()</code> on the specified cycle.
 *
 * Exposes the protected method. Should be used only by test
 * classes in order to emulate the wicket request-response cycle.
 *
 * @param cycle//  w  w  w .jav a2 s.co  m
 *        {@link RequestCycle} on which the method is
 *        invoked.
 */
public static void endRequest(RequestCycle cycle) {
    cycle.getListeners().onEndRequest(cycle);
}