Example usage for org.apache.wicket.protocol.https Scheme HTTPS

List of usage examples for org.apache.wicket.protocol.https Scheme HTTPS

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.https Scheme HTTPS.

Prototype

Scheme HTTPS

To view the source code for org.apache.wicket.protocol.https Scheme HTTPS.

Click Source Link

Document

https

Usage

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

License:Apache License

/**
 * Gets the domain url.//from   w  w  w. jav a  2 s .  c  om
 * 
 * @param ssl
 *            if the domain url is secure the scheme https will be added otherwise http
 * @param withServerPort
 *            the with server port
 * @param withSlashAtTheEnd
 *            the with slash at the end
 * @return the domain url
 */
public static String getDomainUrl(final boolean ssl, final boolean withServerPort,
        final boolean withSlashAtTheEnd) {
    return newDomainUrl(ssl ? Scheme.HTTPS.urlName() : Scheme.HTTP.urlName(),
            WicketUrlExtensions.getServerName(),
            WicketComponentExtensions.getHttpServletRequest().getServerPort(), withServerPort,
            withSlashAtTheEnd);
}

From source file:org.jaulp.wicket.base.util.url.WicketUrlUtils.java

License:Apache License

/**
 * Gets the domain url./*  w  w w  .  j ava  2s  .co m*/
 * 
 * @param ssl
 *            if the domain url is secure the scheme https will be added otherwise http
 * @param withServerPort
 *            the with server port
 * @param withSlashAtTheEnd
 *            the with slash at the end
 * @return the domain url
 */
public static String getDomainUrl(boolean ssl, boolean withServerPort, boolean withSlashAtTheEnd) {
    return newDomainUrl(ssl ? Scheme.HTTPS.urlName() : Scheme.HTTP.urlName(), WicketUrlUtils.getServerName(),
            WicketComponentUtils.getHttpServletRequest().getServerPort(), withServerPort, withSlashAtTheEnd);
}

From source file:org.opensingular.lib.wicket.util.application.HttpsOnlyRequestMapper.java

License:Apache License

private Url toHttps(Url url) {
    if (url != null) {
        url.setProtocol(Scheme.HTTPS.urlName());
    }
    return url;
}