public class HttpUtil
extends java.lang.Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
booleanVariableValue(HttpInputStream in,
java.lang.String variable,
boolean defaultValue)
Returns whether a boolean variable is in the variables.
|
static java.lang.String |
canonicalizePath(java.lang.String path)
Makes a path canonical
|
static java.lang.String |
getCodeMessage(int code)
Gets a message apropriate for a give HTTP code
|
protected static int |
indexOf(char[] chars,
int length,
char chr,
int from) |
public static java.lang.String getCodeMessage(int code)
code
- Reference CodeHttpConstants
public static java.lang.String canonicalizePath(java.lang.String path)
path
- Target pathprotected static int indexOf(char[] chars, int length, char chr, int from)
public static boolean booleanVariableValue(HttpInputStream in, java.lang.String variable, boolean defaultValue)
true
or 1
and the answer is true.
Otherwise is false