com.free2be.dimensions.util
Class RequestUtils

java.lang.Object
  extended by com.free2be.dimensions.util.RequestUtils

public class RequestUtils
extends java.lang.Object

This is a utility class. It is inspired by "RequestUtils" inside Struts.


Constructor Summary
RequestUtils()
           
 
Method Summary
static java.lang.Object lookup(javax.servlet.http.HttpServletRequest request, java.lang.String name, java.lang.String scopeName)
          Finds out a bean starting from an HttpServletRequest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestUtils

public RequestUtils()
Method Detail

lookup

public static java.lang.Object lookup(javax.servlet.http.HttpServletRequest request,
                                      java.lang.String name,
                                      java.lang.String scopeName)
                               throws javax.servlet.ServletException
Finds out a bean starting from an HttpServletRequest.

Parameters:
request - The request to use.
name - The name of the bean to find.
scopeName - The scope to use in finding the bean. Correct values are "application", "session" and "request".
Returns:
The requested bean, if found.
Throws:
javax.servlet.ServletException - If something goes wrong.