public class ServletUtils extends java.lang.Object
Constructor and Description |
---|
ServletUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBooleanParameter(HttpServletRequest request,
java.lang.String name,
boolean defaultValue) |
static int |
getIntParameter(HttpServletRequest request,
java.lang.String name,
int defaultValue) |
static long |
getLongParameter(HttpServletRequest request,
java.lang.String name,
long defaultValue) |
static java.util.List<java.lang.Integer> |
readIntParamList(HttpServletRequest request,
java.lang.String paramName)
Reads a set of integer values specified by GET or POST parameters.
|
public ServletUtils()
public static int getIntParameter(HttpServletRequest request, java.lang.String name, int defaultValue)
public static long getLongParameter(HttpServletRequest request, java.lang.String name, long defaultValue)
public static boolean getBooleanParameter(HttpServletRequest request, java.lang.String name, boolean defaultValue)
public static java.util.List<java.lang.Integer> readIntParamList(HttpServletRequest request, java.lang.String paramName)