public class ParameterValidationUtils extends Object
StringValidateEncodeUtils| Modifier and Type | Method and Description |
|---|---|
static boolean |
validateParameterAsSingleValueAlphanumericString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName) |
static boolean |
validateParameterAsSingleValueAlphanumericStringConstrained(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName,
String[] constrainedSet,
boolean ignoreCase) |
static boolean |
validateParameterAsSingleValueBooleanString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName) |
static boolean |
validateParameterAsSingleValueDecimalNumber(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName) |
static boolean |
validateParameterAsSingleValueFilePathString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
blah, blah, ...
|
static boolean |
validateParameterAsSingleValueIdString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
blah, blah, ...
|
static boolean |
validateParameterAsSingleValuePathString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
blah, blah, ...
|
static boolean |
validateParameterAsSingleValueSingleLineString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName) |
static boolean |
validateParameterAsSingleValueUriString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
blah, blah, ...
|
public static boolean validateParameterAsSingleValueSingleLineString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic static boolean validateParameterAsSingleValuePathString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
Note: Currently also rejecting parameter values that contain any less than ("<"), greater than (">"), or backslash ("\") characters. [May loosen this restriction later.]
request - the servlet requestresponse - the servlet responseparameterName - the name of the parameter to checkIOException - if there is a problem writing the response.javax.servlet.ServletException - if a problem is encountered.public static boolean validateParameterAsSingleValueFilePathString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
Note: Currently also rejecting parameter values that contain any less than ("<"), greater than (">"), or backslash ("\") characters. [May loosen this restriction later.]
request - the servlet requestresponse - the servlet responseparameterName - the name of the parameter to checkIOException - if there is a problem writing the response.javax.servlet.ServletException - if a problem is encountered.public static boolean validateParameterAsSingleValueAlphanumericString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic static boolean validateParameterAsSingleValueAlphanumericStringConstrained(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName,
String[] constrainedSet,
boolean ignoreCase)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic static boolean validateParameterAsSingleValueUriString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
Note: Currently also rejecting parameter values that contain any less than ("<"), greater than (">"), or backslash ("\") characters. [May loosen this restriction later.]
request - the servlet requestresponse - the servlet responseparameterName - the name of the parameter to checkIOException - if there is a problem writing the response.javax.servlet.ServletException - if a problem is encountered.public static boolean validateParameterAsSingleValueIdString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
Note: Currently also rejecting parameter values that contain any less than ("<"), greater than (">"), or backslash ("\") characters. [May loosen this restriction later.]
request - the servlet requestresponse - the servlet responseparameterName - the name of the parameter to checkIOException - if there is a problem writing the response.javax.servlet.ServletException - if a problem is encountered.public static boolean validateParameterAsSingleValueBooleanString(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic static boolean validateParameterAsSingleValueDecimalNumber(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String parameterName)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 1999–2013 UCAR/Unidata. All rights reserved.