Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.util
Class ServletUtil  view ServletUtil download ServletUtil.java

java.lang.Object
  extended bycom.aendvari.common.util.ServletUtil

public class ServletUtil
extends java.lang.Object

Utility class for servlets.


Nested Class Summary
static interface ServletUtil.Scope
          Constants for scope searches.
 
Constructor Summary
ServletUtil()
           
 
Method Summary
static java.lang.Object getAttribute(javax.servlet.http.HttpServletRequest request, java.lang.String name)
          Returns the specified attribute.
static java.lang.Object getAttribute(javax.servlet.jsp.PageContext pageContext, java.lang.String scope, java.lang.String attributeName)
           Uses scope for where to find the object wanted.
static void setAttribute(javax.servlet.jsp.PageContext pageContext, java.lang.String scope, java.lang.String attributeName, java.lang.Object attributeObject)
           Places the supplied object in the scope specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletUtil

public ServletUtil()
Method Detail

getAttribute

public static java.lang.Object getAttribute(javax.servlet.http.HttpServletRequest request,
                                            java.lang.String name)
Returns the specified attribute. Looks in the request and session attribute spaces.


getAttribute

public static java.lang.Object getAttribute(javax.servlet.jsp.PageContext pageContext,
                                            java.lang.String scope,
                                            java.lang.String attributeName)

Uses scope for where to find the object wanted. If not found, an attempt to find the scope manually will occur.


setAttribute

public static void setAttribute(javax.servlet.jsp.PageContext pageContext,
                                java.lang.String scope,
                                java.lang.String attributeName,
                                java.lang.Object attributeObject)

Places the supplied object in the scope specified.