com.opensymphony.webwork.interceptor
Class PrincipalProxy

java.lang.Object
  extended by com.opensymphony.webwork.interceptor.PrincipalProxy

public class PrincipalProxy
extends Object

Proxy class used together with PrincipalAware interface. It allows to get indirect access to HttpServletRequest Principal related methods.

Version:
$Revision: 577 $
Author:
Remigijus Bauzys

Constructor Summary
PrincipalProxy(HttpServletRequest request)
           
 
Method Summary
 String getRemoteUser()
           
 HttpServletRequest getRequest()
           
 Principal getUserPrincipal()
           
 boolean isRequestSecure()
           
 boolean isUserInRole(String role)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalProxy

public PrincipalProxy(HttpServletRequest request)
Method Detail

isUserInRole

public boolean isUserInRole(String role)

getUserPrincipal

public Principal getUserPrincipal()

getRemoteUser

public String getRemoteUser()

isRequestSecure

public boolean isRequestSecure()

getRequest

public HttpServletRequest getRequest()

WebWork Project Page