Represents a User for GeoServer.
Used as a typesafe Session container. This is an alternative to using calls to request.getAttributes( key ) and casting.
The User object is saved in session scope by ConfigAction:
HttpSession session = request.getSession(); User user = request.getAttributes( UserContainer.WEB_CONTAINER_KEY ); if( user == null ){ user = new UserContainer( request.getLocal() ); session.setAttributes( UserContainer.WEB_CONTAINER_KEY, user ); }
This class is based on the UserContainer class outlined in the book "Programming Jakarta Struts" by Chuck Cavaness.
@author jgarnett, Refractions Research, Inc.
@author $Author: jive $ (last modification)
@version $Id: UserContainer.java,v 1.10 2004/03/09 05:38:18 jive Exp $