Package org.springframework.security.web.servletapi

Examples of org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper


   * Check the user has unix user agent.
   *
   * @return true if unix.
   */
  public boolean isUnixUser() {
    SecurityContextHolderAwareRequestWrapper request = cast(RequestContextHolder.currentRequestAttributes()
        .resolveReference("request"));
    return !StringUtils.containsIgnoreCase(request.getHeader("User-Agent"), "Win");
  }
View Full Code Here

TOP

Related Classes of org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper

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.