📄 portlethttpsession.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: PortletHttpSession.java
package org.apache.struts2.portlet.servlet;
import java.util.*;
import javax.portlet.PortletSession;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionContext;
// Referenced classes of package org.apache.struts2.portlet.servlet:
// PortletServletContext
public class PortletHttpSession
implements HttpSession
{
private PortletSession portletSession;
public PortletHttpSession(PortletSession portletSession)
{
this.portletSession = portletSession;
}
public Object getAttribute(String name)
{
return portletSession.getAttribute(name);
}
public Enumeration getAttributeNames()
{
return portletSession.getAttributeNames();
}
public long getCreationTime()
{
return portletSession.getCreationTime();
}
public String getId()
{
return portletSession.getId();
}
public long getLastAccessedTime()
{
return portletSession.getLastAccessedTime();
}
public int getMaxInactiveInterval()
{
return portletSession.getMaxInactiveInterval();
}
public ServletContext getServletContext()
{
return new PortletServletContext(portletSession.getPortletContext());
}
public HttpSessionContext getSessionContext()
{
throw new IllegalStateException("Not supported in a portlet");
}
public Object getValue(String name)
{
return getAttribute(name);
}
public String[] getValueNames()
{
List names = new ArrayList();
for (Enumeration attrNames = getAttributeNames(); attrNames.hasMoreElements(); names.add((String)attrNames.nextElement()));
return (String[])names.toArray(new String[0]);
}
public void invalidate()
{
portletSession.invalidate();
}
public boolean isNew()
{
return portletSession.isNew();
}
public void putValue(String name, Object value)
{
setAttribute(name, value);
}
public void removeAttribute(String name)
{
portletSession.removeAttribute(name);
}
public void removeValue(String name)
{
removeAttribute(name);
}
public void setAttribute(String name, Object value)
{
portletSession.setAttribute(name, value);
}
public void setMaxInactiveInterval(int interval)
{
portletSession.setMaxInactiveInterval(interval);
}
public PortletSession getPortletSession()
{
return portletSession;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -