mx4j.tools.adaptor.http
Class HttpUtil
java.lang.Object
mx4j.tools.adaptor.http.HttpUtil
public class HttpUtil
extends java.lang.Object
Utility methods for the HTTP adaptor
static boolean | booleanVariableValue(HttpInputStream in, String variable, boolean defaultValue) - Returns whether a boolean variable is in the variables.
|
static String | canonicalizePath(String path) - Makes a path canonical
|
static 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)
|
booleanVariableValue
public static boolean booleanVariableValue(HttpInputStream in,
String variable,
boolean defaultValue)
Returns whether a boolean variable is in the variables. It tries to find
it. If not found the the default is used. If found is tested to check if
it is true
or 1
and the answer is true.
Otherwise is false
canonicalizePath
public static String canonicalizePath(String path)
Makes a path canonical
getCodeMessage
public static String getCodeMessage(int code)
Gets a message apropriate for a give HTTP code
indexOf
protected static int indexOf(char[] chars,
int length,
char chr,
int from)
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.