|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.apache.struts2.servlet.interceptor.ServletPrincipalProxy
public class ServletPrincipalProxy
PrincipalProxy implementation for using HttpServletRequest Principal related methods.
| 构造方法摘要 | |
|---|---|
ServletPrincipalProxy(javax.servlet.http.HttpServletRequest request)
Constructs a proxy |
|
| 方法摘要 | |
|---|---|
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 |
| 从类 java.lang.Object 继承的方法 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ServletPrincipalProxy(javax.servlet.http.HttpServletRequest request)
request - The underlying request| 方法详细信息 |
|---|
public boolean isUserInRole(String role)
PrincipalProxy 中的 isUserInRolerole - The role
public Principal getUserPrincipal()
PrincipalProxy 中的 getUserPrincipalpublic String getRemoteUser()
PrincipalProxy 中的 getRemoteUserpublic boolean isRequestSecure()
PrincipalProxy 中的 isRequestSecurepublic javax.servlet.http.HttpServletRequest getRequest()
org.apache.struts2.servlet.ServletRequestAware, since this method will be dropped in future.
PrincipalProxy 中的 getRequest
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||