/** * @param html * @return a ContextMap to access the parameters of the inbound Http request. */ public static ContextMap getParameters(HtmlCanvas html) { return html.getPageContext().getContextMap(PageContext.REQUEST_PARAMETERS); } /**
/** * * @param html * @return a ContextMap to access the Cookies passed in by the inbound Http request. */ public static ContextMap getCookies(HtmlCanvas html) { return html.getPageContext().getContextMap(PageContext.REQUEST_COOKIES); } /**
/** * * @param html * @return a ContextMap to access the session associated to the inbound request. */ public static ContextMap getSession(HtmlCanvas html) { return html.getPageContext().getContextMap(PageContext.SESSION); } /**
/** * use RequestUtils.getPathParameters(html) instead. * @return */ @Deprecated public ContextMap getPathParameters() { return this.getPageContext().getContextMap(PageContext.REQUEST_PATH); } /**
/** * * @param html * @param name * @return aString | null which is the value of a header of the inbound Http request. */ public static String getHeaderValue(HtmlCanvas html, String name) { ContextMap map = html.getPageContext().getContextMap(PageContext.REQUEST_HEADERS); if (null == map) return null; return map.getString(name); } /**