xmlBlaster 2.1.0 API

org.xmlBlaster.protocol.http
Class Util

java.lang.Object
  extended by 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
 

Field Detail

ME

private final java.lang.String ME
See Also:
Constant Field Values
Constructor Detail

Util

public Util()
Method Detail

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 client
name - parameter name
defaultVal - 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)

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.