org.apache.empire.struts2.web.servlet
Class ServletSessionWrapper

java.lang.Object
  extended by org.apache.empire.struts2.web.servlet.ServletSessionWrapper
All Implemented Interfaces:
SessionContext

public class ServletSessionWrapper
extends Object
implements SessionContext


Constructor Summary
ServletSessionWrapper(javax.servlet.http.HttpSession session)
           
 
Method Summary
 AppContext getAppContext()
           
 Object getAttribute(String name)
           
 Enumeration<String> getAttributeNames()
           
 long getCreationTime()
           
 Object getExternalSession()
           
 String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 void invalidate()
           
 boolean isNew()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletSessionWrapper

public ServletSessionWrapper(javax.servlet.http.HttpSession session)
Method Detail

getExternalSession

public Object getExternalSession()
Specified by:
getExternalSession in interface SessionContext

getAppContext

public AppContext getAppContext()
Specified by:
getAppContext in interface SessionContext

getId

public String getId()
Specified by:
getId in interface SessionContext

isNew

public boolean isNew()
Specified by:
isNew in interface SessionContext

invalidate

public void invalidate()
Specified by:
invalidate in interface SessionContext

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface SessionContext

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface SessionContext

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface SessionContext

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)
Specified by:
setMaxInactiveInterval in interface SessionContext

getAttributeNames

public Enumeration<String> getAttributeNames()
Specified by:
getAttributeNames in interface SessionContext

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface SessionContext

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface SessionContext

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface SessionContext


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.