org.apache.cocoon.components.language.markup.xsp
Class XSPSessionHelper

java.lang.Object
  |
  +--org.apache.cocoon.components.language.markup.xsp.XSPSessionHelper

public class XSPSessionHelper
extends java.lang.Object

The Session object helper

Version:
CVS $Id: XSPSessionHelper.java,v 1.9 2002/03/06 03:05:23 vgritsenko Exp $
Author:
Ricardo Rocha, Vadim Gritsenko

Constructor Summary
XSPSessionHelper()
           
 
Method Summary
static java.lang.Object getSessionAttribute(Session session, java.lang.String name, java.lang.Object defaultValue)
          Return the given session attribute value or a user-provided default if none was specified.
static java.util.List getSessionAttributeNames(Session session)
          Get the session attribute names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSPSessionHelper

public XSPSessionHelper()
Method Detail

getSessionAttribute

public static java.lang.Object getSessionAttribute(Session session,
                                                   java.lang.String name,
                                                   java.lang.Object defaultValue)
Return the given session attribute value or a user-provided default if none was specified.
Parameters:
session - The Session object
name - The parameter name
defaultValue - Value to substitute in absence of a parameter value

getSessionAttributeNames

public static java.util.List getSessionAttributeNames(Session session)
Get the session attribute names.
Parameters:
session - The Session object


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.