org.jboss.jsfunit.context
Class JSFUnitHttpSession

java.lang.Object
  extended by org.jboss.jsfunit.context.JSFUnitHttpSession
All Implemented Interfaces:
javax.servlet.http.HttpSession

public class JSFUnitHttpSession
extends Object
implements javax.servlet.http.HttpSession

This HttpSession delegates everything to the real HttpSession except for the invalidate method. For that, it will clear the session of all attributes except those used by the JSFUnit framework. It will not actually destroy the session.

Since:
1.0
Author:
Stan Silvert

Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 long getCreationTime()
           
 String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSessionContext getSessionContext()
          Deprecated. 
 Object getValue(String name)
          Deprecated. 
 String[] getValueNames()
          Deprecated. 
 void invalidate()
          Instead of invalidating the session, clear all attributes except those used by JSFUnit.
 boolean isNew()
           
 void putValue(String name, Object value)
          Deprecated. 
 void removeAttribute(String name)
           
 void removeValue(String name)
          Deprecated. 
 void setAttribute(String name, Object value)
           
 void setMaxInactiveInterval(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributeNames

public Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface javax.servlet.http.HttpSession

getCreationTime

public long getCreationTime()
Specified by:
getCreationTime in interface javax.servlet.http.HttpSession

getId

public String getId()
Specified by:
getId in interface javax.servlet.http.HttpSession

getLastAccessedTime

public long getLastAccessedTime()
Specified by:
getLastAccessedTime in interface javax.servlet.http.HttpSession

getMaxInactiveInterval

public int getMaxInactiveInterval()
Specified by:
getMaxInactiveInterval in interface javax.servlet.http.HttpSession

getServletContext

public javax.servlet.ServletContext getServletContext()
Specified by:
getServletContext in interface javax.servlet.http.HttpSession

getSessionContext

@Deprecated
public javax.servlet.http.HttpSessionContext getSessionContext()
Deprecated. 

Specified by:
getSessionContext in interface javax.servlet.http.HttpSession

getValueNames

@Deprecated
public String[] getValueNames()
Deprecated. 

Specified by:
getValueNames in interface javax.servlet.http.HttpSession

invalidate

public void invalidate()
Instead of invalidating the session, clear all attributes except those used by JSFUnit.

Specified by:
invalidate in interface javax.servlet.http.HttpSession

isNew

public boolean isNew()
Specified by:
isNew in interface javax.servlet.http.HttpSession

setMaxInactiveInterval

public void setMaxInactiveInterval(int i)
Specified by:
setMaxInactiveInterval in interface javax.servlet.http.HttpSession

removeValue

@Deprecated
public void removeValue(String name)
Deprecated. 

Specified by:
removeValue in interface javax.servlet.http.HttpSession

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface javax.servlet.http.HttpSession

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface javax.servlet.http.HttpSession

getValue

@Deprecated
public Object getValue(String name)
Deprecated. 

Specified by:
getValue in interface javax.servlet.http.HttpSession

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface javax.servlet.http.HttpSession

putValue

@Deprecated
public void putValue(String name,
                                Object value)
Deprecated. 

Specified by:
putValue in interface javax.servlet.http.HttpSession


Copyright © 2007-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.