org.apache.cocoon.environment.background
Class BackgroundSession

java.lang.Object
  extended byorg.apache.cocoon.environment.impl.AbstractSession
      extended byorg.apache.cocoon.environment.background.BackgroundSession
All Implemented Interfaces:
HttpSession, org.apache.cocoon.environment.Session

public final class BackgroundSession
extends org.apache.cocoon.environment.impl.AbstractSession

Command-line version of Http Session.

Version:
$Id: BackgroundSession.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected static BackgroundSession session
           
 
Constructor Summary
BackgroundSession()
           
 
Method Summary
 Object getAttribute(String name)
           
 Enumeration getAttributeNames()
           
 long getCreationTime()
           
 String getId()
           
 long getLastAccessedTime()
           
 int getMaxInactiveInterval()
           
static org.apache.cocoon.environment.Session getSession(boolean create)
          Get the current session object - if available
 void invalidate()
           
static void invalidateSession()
          Invalidate the current session
 boolean isNew()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setMaxInactiveInterval(int interval)
           
 
Methods inherited from class org.apache.cocoon.environment.impl.AbstractSession
getAttributes, getServletContext, getSessionContext, getValue, getValueNames, putValue, removeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected static BackgroundSession session
Constructor Detail

BackgroundSession

public BackgroundSession()
Method Detail

getCreationTime

public long getCreationTime()

getId

public String getId()

getLastAccessedTime

public long getLastAccessedTime()

setMaxInactiveInterval

public void setMaxInactiveInterval(int interval)

getMaxInactiveInterval

public int getMaxInactiveInterval()

getAttribute

public Object getAttribute(String name)

getAttributeNames

public Enumeration getAttributeNames()

setAttribute

public void setAttribute(String name,
                         Object value)

removeAttribute

public void removeAttribute(String name)

invalidate

public void invalidate()

isNew

public boolean isNew()

getSession

public static org.apache.cocoon.environment.Session getSession(boolean create)
Get the current session object - if available


invalidateSession

public static void invalidateSession()
Invalidate the current session



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.