Example usage for org.apache.wicket Page getRequest

List of usage examples for org.apache.wicket Page getRequest

Introduction

In this page you can find the example usage for org.apache.wicket Page getRequest.

Prototype

public final Request getRequest() 

Source Link

Usage

From source file:de.alpharogroup.wicket.base.util.url.WicketUrlExtensions.java

License:Apache License

/**
 * Gets the context path from the given WebPage.
 * /*from ww  w . j  a  v a2  s . c  om*/
 * @param page
 *            the page
 * @return the context path
 */
public static String getContextPath(final Page page) {
    return page.getRequest().getContextPath();
}

From source file:org.devgateway.eudevfin.ui.common.spring.WicketSpringApplication.java

License:Open Source License

@Override
protected void onUnauthorizedPage(final Page page) {
    logger.warn("Unauthorized page requested:" + page.getRequest().getUrl().toString());
    throw new RestartResponseException(getSignInPageClass());
}