|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbforms.util.ParseUtil
public class ParseUtil
This utility-class provides convenience methods for parsing strings and generating certain data structures
Constructor Summary | |
---|---|
ParseUtil()
|
Method Summary | |
---|---|
static FileHolder |
getFileHolder(HttpServletRequest request,
String name)
Returns a FileHolder object for the specified file pending around in the current request |
static String |
getFirstParameterStartingWith(HttpServletRequest request,
String str)
Get the name of the parameter starting with the input string. |
static String |
getParameter(HttpServletRequest request,
String name)
Returns the value of the named parameter as a String, or null if the parameter was not sent or was sent without a value. |
static String |
getParameter(HttpServletRequest request,
String name,
String def)
Returns the value of the named parameter as a String, or the default if the parameter was not sent or was sent without a value. |
static Enumeration |
getParameterNames(HttpServletRequest request)
Returns the names of all the parameters as an Enumeration of Strings. |
static Vector |
getParametersStartingWith(HttpServletRequest request,
String str)
Get a Vector object containing all the request parameters starting with the input string. |
static String[] |
getParameterValues(HttpServletRequest request,
String name)
Returns the values of the named parameter as a String array, or null if the parameter was not sent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParseUtil()
Method Detail |
---|
public static FileHolder getFileHolder(HttpServletRequest request, String name)
request
- the request objectname
- the file name.
public static String getFirstParameterStartingWith(HttpServletRequest request, String str)
request
- the request objectstr
- the string to check for
public static String getParameter(HttpServletRequest request, String name, String def)
request
- the request objectname
- the parameter namedef
- the default value
public static String getParameter(HttpServletRequest request, String name)
request
- the request objectname
- the parameter name.
public static Enumeration getParameterNames(HttpServletRequest request)
request
- the request object
public static String[] getParameterValues(HttpServletRequest request, String name)
request
- the request objectname
- the parameter name.
public static Vector getParametersStartingWith(HttpServletRequest request, String str)
request
- the request objectstr
- the string to check for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |