예제 #1
0
 public GrailsWebRequest(
     HttpServletRequest request,
     HttpServletResponse response,
     GrailsApplicationAttributes attributes) {
   super(request, response);
   this.attributes = attributes;
   this.applicationContext = attributes.getApplicationContext();
   inheritEncodingStateRegistry();
 }
예제 #2
0
 public GrailsWebRequest(
     HttpServletRequest request, HttpServletResponse response, ServletContext servletContext) {
   super(request, response);
   try {
     attributes = grailsApplicationAttributesConstructor.newInstance(servletContext);
     this.applicationContext = attributes.getApplicationContext();
   } catch (Exception e) {
     ReflectionUtils.rethrowRuntimeException(e);
   }
   inheritEncodingStateRegistry();
 }