|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface PrincipalProxy
Proxy interface used together with PrincipalAware interface. It allows indirect access to HttpServletRequest or PortletRequest Principal related methods.
方法摘要 | |
---|---|
String |
getRemoteUser()
Gets the user id |
javax.servlet.http.HttpServletRequest |
getRequest()
已过时。 To obtain the HttpServletRequest in your action, use org.apache.struts2.servlet.ServletRequestAware , since this method will be dropped in future. |
Principal |
getUserPrincipal()
Gets the user principal |
boolean |
isRequestSecure()
Is the request using https? |
boolean |
isUserInRole(String role)
True if the user is in the given role |
方法详细信息 |
---|
boolean isUserInRole(String role)
role
- The role
Principal getUserPrincipal()
String getRemoteUser()
boolean isRequestSecure()
javax.servlet.http.HttpServletRequest getRequest()
org.apache.struts2.servlet.ServletRequestAware
, since this method will be dropped in future.
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |