/** * Constructor. * * @param r HTTP servlet request */ BXServletRequest(final HttpServletRequest r) { req = r; method = Method.valueOf(r.getMethod()); url = r.getRequestURL().toString(); // MiltonUtils.stripContext(r); REQUEST.set(r); }
/** * Get the current request. * * @return the current {@link HttpServletRequest} */ public static HttpServletRequest getRequest() { return REQUEST.get(); }