Class SessionNamespace

java.lang.Object
org.dwcj.environment.namespace.SessionNamespace
All Implemented Interfaces:
Namespace

public final class SessionNamespace extends Object implements Namespace
A session namespace is a singleton that only exists within the current application server thread.
  • Constructor Details

    • SessionNamespace

      public SessionNamespace()
  • Method Details

    • put

      public void put(String key, Object value)
      Description copied from interface: Namespace
      Put a variable in the namespace
      Specified by:
      put in interface Namespace
      Parameters:
      key - the variable name
      value - the variable contents
    • get

      public Object get(String key)
      Description copied from interface: Namespace
      retrieve a variable from the namespace
      Specified by:
      get in interface Namespace
      Parameters:
      key - the variable name
      Returns:
      the variable content
    • remove

      public void remove(String key)
      Description copied from interface: Namespace
      remove a variable from the namespace
      Specified by:
      remove in interface Namespace
      Parameters:
      key - the variable name
    • keySet

      public Set<String> keySet()
      Description copied from interface: Namespace
      list all variables in this namespace
      Specified by:
      keySet in interface Namespace
      Returns:
      a Set with all the names
    • size

      public int size()
      Description copied from interface: Namespace
      Get the variable count in this namespace.
      Specified by:
      size in interface Namespace
      Returns:
      the count of variables / objects
    • clear

      public void clear()
      Description copied from interface: Namespace
      Delete all variables in this namespace
      Specified by:
      clear in interface Namespace