Save This Page
Home » struts-2.1.8.1-src » org.apache.struts2.servlet » interceptor » [javadoc | source]
org.apache.struts2.servlet.interceptor
public class: ServletPrincipalProxy [javadoc | source]
java.lang.Object
   org.apache.struts2.servlet.interceptor.ServletPrincipalProxy

All Implemented Interfaces:
    PrincipalProxy

PrincipalProxy implementation for using HttpServletRequest Principal related methods.
Constructor:
 public ServletPrincipalProxy(HttpServletRequest request) 
    Constructs a proxy
    Parameters:
    request - The underlying request
Method from org.apache.struts2.servlet.interceptor.ServletPrincipalProxy Summary:
getRemoteUser,   getRequest,   getUserPrincipal,   isRequestSecure,   isUserInRole
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.servlet.interceptor.ServletPrincipalProxy Detail:
 public String getRemoteUser() 
    Gets the user id
 public HttpServletRequest getRequest() 
Deprecated! To - obtain the HttpServletRequest in your action, use org.apache.struts2.servlet.ServletRequestAware , since this method will be dropped in future.

    Gets the request.
 public Principal getUserPrincipal() 
    Gets the user principal
 public boolean isRequestSecure() 
    Is the request using https?
 public boolean isUserInRole(String role) 
    True if the user is in the given role