net.sf.mmapps.commons.util
Class SessionUtil

java.lang.Object
  extended by net.sf.mmapps.commons.util.SessionUtil

public class SessionUtil
extends java.lang.Object


Constructor Summary
SessionUtil()
           
 
Method Summary
static void clean(javax.servlet.http.HttpServletRequest request)
          Clean the session
static boolean contains(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          contains the session a object
static java.lang.Object get(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Get a object from the session
static void remove(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          removes an object from the session
static void set(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.Object o)
          Set the object in the session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionUtil

public SessionUtil()
Method Detail

contains

public static boolean contains(javax.servlet.http.HttpServletRequest request,
                               java.lang.String name)
contains the session a object

Parameters:
name - Name of session attribute
request - Http request
Returns:
true when session contains attribute

get

public static java.lang.Object get(javax.servlet.http.HttpServletRequest request,
                                   java.lang.String name)
Get a object from the session

Parameters:
name - Name of session attribute
request - Http request
Returns:
Object from the session

set

public static void set(javax.servlet.http.HttpServletRequest request,
                       java.lang.String name,
                       java.lang.Object o)
Set the object in the session

Parameters:
name - Name of session attribute
request - Http request
o - Object to add to the session

remove

public static void remove(javax.servlet.http.HttpServletRequest request,
                          java.lang.String name)
removes an object from the session

Parameters:
name - Name of session attribute
request - Http request

clean

public static void clean(javax.servlet.http.HttpServletRequest request)
Clean the session

Parameters:
request - Http request


Copyright © 2003-2006 mmapps. All Rights Reserved.