Example usage for org.apache.shiro.web.filter.authz SslFilter HTTPS_SCHEME

List of usage examples for org.apache.shiro.web.filter.authz SslFilter HTTPS_SCHEME

Introduction

In this page you can find the example usage for org.apache.shiro.web.filter.authz SslFilter HTTPS_SCHEME.

Prototype

String HTTPS_SCHEME

To view the source code for org.apache.shiro.web.filter.authz SslFilter HTTPS_SCHEME.

Click Source Link

Usage

From source file:com.wms.studio.filter.HttpFilter.java

License:Apache License

protected String getScheme(String requestScheme, int port) {
    if (port == this.port) {
        return this.scheme;
    } else if (port == SslFilter.DEFAULT_HTTPS_PORT) {
        return SslFilter.HTTPS_SCHEME;
    } else {/*from w ww. j  a v  a  2  s .  c  o  m*/
        return requestScheme;
    }
}