com.xmlserv.util
Class ServletUtil

java.lang.Object
  |
  +--com.xmlserv.util.ServletUtil

public class ServletUtil
extends java.lang.Object


Constructor Summary
ServletUtil()
           
 
Method Summary
static boolean getBoolean(javax.servlet.http.HttpServletRequest req, java.lang.String parameter)
          Return a boolean value: true if the parameter was set and its value has length() !
static int getInteger(javax.servlet.http.HttpServletRequest req, java.lang.String parameter)
          Return the given parameters value converted to an integer or -1 if not set.
static java.lang.String getString(javax.servlet.http.HttpServletRequest req, java.lang.String parameter)
          Return the parameter value or an empty String.
 
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

getString

public static java.lang.String getString(javax.servlet.http.HttpServletRequest req,
                                         java.lang.String parameter)
Return the parameter value or an empty String.

getInteger

public static int getInteger(javax.servlet.http.HttpServletRequest req,
                             java.lang.String parameter)
Return the given parameters value converted to an integer or -1 if not set.

getBoolean

public static boolean getBoolean(javax.servlet.http.HttpServletRequest req,
                                 java.lang.String parameter)
Return a boolean value: true if the parameter was set and its value has length() != 0 false otherwise