| java.lang.Object net.myvietnam.mvncore.util.ParamUtil
ParamUtil | final public class ParamUtil (Code) | | |
Method Summary | |
public static String | getAttribute(HttpSession session, String name) | public static String | getAttribute(ServletRequest request, String name) | public static String | getAttribute(HttpServletRequest request, String name) | public static String | getContextPath() | public static String | getParameter(HttpServletRequest request, String param) | public static String | getParameter(HttpServletRequest request, String param, boolean checkEmpty) | public static boolean | getParameterBoolean(HttpServletRequest request, String param) | public static byte | getParameterByte(HttpServletRequest request, String param) | public static java.sql.Date | getParameterDate(HttpServletRequest request, String param) | public static java.sql.Date | getParameterDate(HttpServletRequest request, String paramDay, String paramMonth, String paramYear) | public static java.util.Date | getParameterDateUtil(HttpServletRequest request, String param) | public static double | getParameterDouble(HttpServletRequest request, String param) | public static String | getParameterEmail(HttpServletRequest request, String param) | public static String | getParameterFilter(HttpServletRequest request, String param) | public static String | getParameterFilter(HttpServletRequest request, String param, boolean checkEmpty) | public static int | getParameterInt(HttpServletRequest request, String param) | public static int | getParameterInt(HttpServletRequest request, String param, int defaultValue) | public static long | getParameterLong(HttpServletRequest request, String param) | public static long | getParameterLong(HttpServletRequest request, String param, long defaultValue) | public static String | getParameterPassword(HttpServletRequest request, String param, int minLength, int option) | public static String | getParameterSafe(HttpServletRequest request, String param, boolean checkEmpty) | public static double | getParameterTimeZone(HttpServletRequest request, String param) | public static int | getParameterUnsignedInt(HttpServletRequest request, String param) | public static int | getParameterUnsignedInt(HttpServletRequest request, String param, int defaultValue) | public static String | getParameterUrl(HttpServletRequest request, String param) | public static String | getServer(HttpServletRequest request) | public static String | getServer2(HttpServletRequest request) | public static String | getServerPath() | public static void | setContextPath(String path) |
getAttribute | public static String getAttribute(ServletRequest request, String name)(Code) | | Note: sometime in the dispatched request, we dont receive HttpServletRequest
but receive ServletRequest, such as com.caucho.server.webapp.DispatchRequest
Parameters: request - ServletRequest Parameters: name - String String |
getAttribute | public static String getAttribute(HttpServletRequest request, String name)(Code) | | Note: we have to use this method because (very strange) that the
HttpServletRequest object does not accept above method
getAttribute(ServletRequest request, String name)
Parameters: request - HttpServletRequest Parameters: name - String String |
getParameterBoolean | public static boolean getParameterBoolean(HttpServletRequest request, String param)(Code) | | Parameters: param - is the name of variable true if the value of param is not empty |
setContextPath | public static void setContextPath(String path)(Code) | | |
|
|