Exemple #1
0
 static void setContext(
     ServletContext servletContext,
     HttpServletRequest httpServletRequest,
     HttpServletResponse httpServletResponse,
     RequestWrapper request,
     ResponseWrapper response) {
   BladeWebContext bladeWebContext = new BladeWebContext();
   bladeWebContext.context = servletContext;
   bladeWebContext.httpServletRequest = httpServletRequest;
   bladeWebContext.httpServletResponse = httpServletResponse;
   bladeWebContext.request = request.getDelegate();
   bladeWebContext.response = response.getDelegate();
   BLADE_WEB_CONTEXT.set(bladeWebContext);
 }
Exemple #2
0
 public static HttpServletRequest servletRequest() {
   return BladeWebContext.me().httpServletRequest;
 }
Exemple #3
0
 public static HttpServletResponse servletResponse() {
   return BladeWebContext.me().httpServletResponse;
 }
Exemple #4
0
 public static ServletContext servletContext() {
   return BladeWebContext.me().context;
 }
Exemple #5
0
 public static Response response() {
   return BladeWebContext.me().response;
 }
Exemple #6
0
 public static Request request() {
   return BladeWebContext.me().request;
 }