yawda.utils.env
Class CEnv

java.lang.Object
  extended byyawda.utils.env.CEnv

public final class CEnv
extends Object

Author:
Quentin Anciaux

Field Summary
static int APPLICATION
           
static int INTERNAL
           
static int REQUEST
           
static int SESSION
           
 
Method Summary
 Object get(String key)
           
 Object get(String key, int location)
           
static CEnv getInstance(javax.servlet.http.HttpServletRequest request)
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpSession getSession()
           
static void main(String[] args)
           
 void remove(String key)
           
 void set(String key, Object value)
           
 void set(String key, Object value, int location)
           
 Object subst(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST

public static final int REQUEST
See Also:
Constant Field Values

SESSION

public static final int SESSION
See Also:
Constant Field Values

APPLICATION

public static final int APPLICATION
See Also:
Constant Field Values

INTERNAL

public static final int INTERNAL
See Also:
Constant Field Values
Method Detail

getInstance

public static CEnv getInstance(javax.servlet.http.HttpServletRequest request)

get

public final Object get(String key,
                        int location)

get

public final Object get(String key)

set

public final void set(String key,
                      Object value,
                      int location)

set

public final void set(String key,
                      Object value)

getRequest

public final javax.servlet.http.HttpServletRequest getRequest()

getSession

public final javax.servlet.http.HttpSession getSession()

getServletContext

public final javax.servlet.ServletContext getServletContext()

subst

public final Object subst(String value)

main

public static void main(String[] args)

remove

public final void remove(String key)