Package org.jrest4guice.security

Examples of org.jrest4guice.security.SecurityContext


      RestContextManager.setContext(requestWrapper, hResponse, params);
      SNASessionProvider.setCurrentSNASession(snaSession);

      // 检测用户当前的安全状态
      if (requestWrapper.getUserPrincipal() != null) {
        SecurityContext securityContext = GuiceContext.getInstance()
            .getBean(SecurityContext.class);
        GuiceContext.getInstance().injectorMembers(securityContext);
        securityContext.getUserPrincipal();
      }

      // 处理当前请求
      new JRest4GuiceProcessor().setUrlPrefix(this.urlPrefix).process(
          requestWrapper, hResponse);
View Full Code Here

TOP

Related Classes of org.jrest4guice.security.SecurityContext

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.