Example usage for org.apache.shiro.web.servlet ShiroHttpServletRequest ShiroHttpServletRequest

List of usage examples for org.apache.shiro.web.servlet ShiroHttpServletRequest ShiroHttpServletRequest

Introduction

In this page you can find the example usage for org.apache.shiro.web.servlet ShiroHttpServletRequest ShiroHttpServletRequest.

Prototype

public ShiroHttpServletRequest(HttpServletRequest wrapped, ServletContext servletContext,
            boolean httpSessions) 

Source Link

Usage

From source file:com.flowlogix.security.ShiroFilter.java

License:Apache License

@Override
protected ServletRequest wrapServletRequest(HttpServletRequest orig) {
    return new ShiroHttpServletRequest(orig, getServletContext(), isHttpSessions()) {
        @Override//from w  w  w .j  a  va  2  s . c  o  m
        public Principal getUserPrincipal() {
            return null;
        }
    };
}