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

java.lang.Object
  extended by org.apache.cocoon.components.language.markup.xsp.XSPSessionHelper

public class XSPSessionHelper
extends Object

The Session object helper

Version:
CVS $Id: XSPSessionHelper.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Ricardo Rocha, Vadim Gritsenko

Constructor Summary
XSPSessionHelper()
           
 
Method Summary
static Object getSessionAttribute(Session session, String name, Object defaultValue)
          Return the given session attribute value or a user-provided default if none was specified.
static 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 Object getSessionAttribute(Session session,
                                         String name,
                                         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 List getSessionAttributeNames(Session session)
Get the session attribute names.

Parameters:
session - The Session object


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.