コード例 #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();
 }