📄 portletprincipalproxy.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: PortletPrincipalProxy.java
package org.apache.struts2.portlet.interceptor;
import java.security.Principal;
import javax.portlet.PortletRequest;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.interceptor.PrincipalProxy;
public class PortletPrincipalProxy
implements PrincipalProxy
{
private PortletRequest request;
public PortletPrincipalProxy(PortletRequest request)
{
this.request = request;
}
public boolean isUserInRole(String role)
{
return request.isUserInRole(role);
}
public Principal getUserPrincipal()
{
return request.getUserPrincipal();
}
public String getRemoteUser()
{
return request.getRemoteUser();
}
public boolean isRequestSecure()
{
return request.isSecure();
}
/**
* @deprecated Method getRequest is deprecated
*/
public HttpServletRequest getRequest()
{
throw new UnsupportedOperationException("Usage of getRequest() method is deprecadet and not supported for this implementation");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -