Home » struts- » org.apache.struts2.servlet » interceptor » [javadoc | source]
public class: ServletPrincipalProxy [javadoc | source]

All Implemented Interfaces:

PrincipalProxy implementation for using HttpServletRequest Principal related methods.
 public ServletPrincipalProxy(HttpServletRequest request) 
    Constructs a proxy
    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