示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * Get the current request.
  *
  * @return the current {@link HttpServletRequest}
  */
 public static HttpServletRequest getRequest() {
   return REQUEST.get();
 }