net.trajano.twiff.adapter
Class SessionAdapter

java.lang.Object
  extended by net.trajano.twiff.adapter.SessionAdapter

public class SessionAdapter
extends Object

This provides access to the HttpSession data. Adapters like this are meant to remove the implicit casting performed by those that use it.

Author:
Archimedes Trajano

Constructor Summary
SessionAdapter(HttpSession session)
          Creates the adapter.
 
Method Summary
 MutablePicoContainer getContainer()
          Returns the PicoContainer stored in the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionAdapter

public SessionAdapter(HttpSession session)
Creates the adapter.

Parameters:
session - the session to adapt
Method Detail

getContainer

public final MutablePicoContainer getContainer()
Returns the PicoContainer stored in the session. The container is stored in the attribute TwiffInternal.HTTP_SESSION_CONTAINER_KEY.

Returns:
the application level container.


Copyright © 2004-2005 trajano.net. All Rights Reserved.