net.mlw.fball.web
Class RequestConstants

java.lang.Object
  |
  +--net.mlw.fball.web.RequestConstants

public final class RequestConstants
extends java.lang.Object

Version:
$Revision: 1.6 $ $Date: 2004/05/21 20:43:48 $
Author:
Matthew L. Wilson

Nested Class Summary
static class RequestConstants.Key
          This class is used to represent a key in the request.
static class RequestConstants.Parameters
           
 
Field Summary
static org.apache.commons.logging.Log LOGGER
          Commons Logger
 
Method Summary
static java.lang.Object getObjectIfNotInRequest(javax.servlet.http.HttpServletRequest request, RequestConstants.Key key, net.mlw.fball.web.ObjectRetriever retriever)
          Gets the requested object, in the following way: Determines if the objec tis already in the request/session. If needed, uses the ObjectRetriever to get the object. If needed, places the object in the request/session. Returns the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

public static final org.apache.commons.logging.Log LOGGER
Commons Logger

Method Detail

getObjectIfNotInRequest

public static java.lang.Object getObjectIfNotInRequest(javax.servlet.http.HttpServletRequest request,
                                                       RequestConstants.Key key,
                                                       net.mlw.fball.web.ObjectRetriever retriever)
                                                throws java.lang.Exception
Gets the requested object, in the following way:
  1. Determines if the objec tis already in the request/session.
  2. If needed, uses the ObjectRetriever to get the object.
  3. If needed, places the object in the request/session.
  4. Returns the object.

Parameters:
request - The servlet request to bind this object to.
key - The Key used to save this object to the request.
retriever - The ObjectRetriever used to retrieve the object if needed
Returns:
The retrieved object.
java.lang.Exception


Copyright © 2003-2004 mlavilson. All Rights Reserved.