org.xmlBlaster.protocol.http
Class Util
java.lang.Object
org.xmlBlaster.protocol.http.Util
- public class Util
- extends java.lang.Object
Common servlet methods
- Author:
- xmlBlaster@marcelruff.info
|
Field Summary |
private java.lang.String |
ME
|
|
Constructor Summary |
Util()
|
|
Method Summary |
static boolean |
getParameter(javax.servlet.http.HttpServletRequest req,
java.lang.String name,
boolean defaultVal)
|
static java.lang.String |
getParameter(javax.servlet.http.HttpServletRequest req,
java.lang.String name,
java.lang.String defaultVal)
Get the request parameter, if not found the session is checked, if
not found again, the given default is returned. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ME
private final java.lang.String ME
- See Also:
- Constant Field Values
Util
public Util()
getParameter
public static final java.lang.String getParameter(javax.servlet.http.HttpServletRequest req,
java.lang.String name,
java.lang.String defaultVal)
- Get the request parameter, if not found the session is checked, if
not found again, the given default is returned.
NOTE: The session check is commented out since not supported in Servlet API 2.0
- Parameters:
req - request from clientname - parameter namedefaultVal - default value if parameter not found
- Returns:
- The value
getParameter
public static final boolean getParameter(javax.servlet.http.HttpServletRequest req,
java.lang.String name,
boolean defaultVal)
Copyright © 1999-2007 The xmlBlaster.org contributers.