Package pt.opensoft.http

Examples of pt.opensoft.http.HttpSession


    }

    public void allows(HttpRequest request, ActionWrapper actionWrapper) {
        if (needsLogin(actionWrapper.getCompleteModuleName(), actionWrapper.getActionName())) {
            HttpSession session = (HttpSession) request.getSession();
            if (session == null || !session.isValid()) {
                throw new NotAllowedException(this.getClass().getSimpleName() + " refused access to " + actionWrapper);
            } else {
              if(session.getValue(_sessionUserTag) == null) {
                throw new NotAllowedException(this.getClass().getSimpleName() + " refused access to " + actionWrapper);
              }
            }
        }
    }
View Full Code Here

TOP

Related Classes of pt.opensoft.http.HttpSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.