/** * @param html * @param key * @return a Boolean | null which is the value of a parameter of the inbound Http request. */ public static Boolean getBooleanParameter(HtmlCanvas html, String key) { String valueOrNull = getParameter(html, key); return valueOrNull == null || valueOrNull.length() == 0 ? null : Boolean.parseBoolean(valueOrNull); } /**
/** * use RequestUtils.getParameters(html) instead. * @return */ @Deprecated public ContextMap getRequestParameters() { return RequestUtils.getParameters(this); } /**
/** * use RequestUtils.getSession(html) instead. * @return */ @Deprecated public ContextMap getSession() { return RequestUtils.getSession(this); } /**
/** * @param html * @param key * @return aString | null which is the value of a parameter of the inbound Http request. */ public static String getParameter(HtmlCanvas html, String key) { ContextMap map = getParameters(html); if (null == map) return null; return map.getString(key); } /**
/** * @param html * @param key * @return an Integer | null which is the value of a parameter of the inbound Http request. */ public static Integer getIntegerParameter(HtmlCanvas html, String key) { String valueOrNull = getParameter(html, key); return valueOrNull == null || valueOrNull.length() == 0 ? null : Integer.parseInt(valueOrNull); } /**