Example usage for org.apache.wicket.request UrlRenderer renderFullUrl

List of usage examples for org.apache.wicket.request UrlRenderer renderFullUrl

Introduction

In this page you can find the example usage for org.apache.wicket.request UrlRenderer renderFullUrl.

Prototype

public String renderFullUrl(final Url url) 

Source Link

Document

Renders a full URL in the protocol://hostname:port/path format

Usage

From source file:org.apache.isis.viewer.wicket.ui.pages.accmngt.EmailVerificationUrlServiceDefault.java

License:Apache License

protected String fullUrlFor(final Class<? extends Page> pageClass, final PageParameters parameters) {
    final RequestCycle requestCycle = RequestCycle.get();
    final CharSequence relativeUrl = requestCycle.urlFor(pageClass, parameters);
    final UrlRenderer urlRenderer = requestCycle.getUrlRenderer();
    final String fullUrl = urlRenderer.renderFullUrl(Url.parse(relativeUrl));
    return fullUrl;
}