public class GrailsDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.web.servlet.HandlerInterceptor[] |
interceptors |
protected org.springframework.web.servlet.ViewResolver |
layoutViewResolver |
protected org.springframework.web.multipart.MultipartResolver |
multipartResolver |
FLASH_MAP_MANAGER_ATTRIBUTE, FLASH_MAP_MANAGER_BEAN_NAME, HANDLER_ADAPTER_BEAN_NAME, HANDLER_EXCEPTION_RESOLVER_BEAN_NAME, HANDLER_MAPPING_BEAN_NAME, INPUT_FLASH_MAP_ATTRIBUTE, LOCALE_RESOLVER_ATTRIBUTE, LOCALE_RESOLVER_BEAN_NAME, MULTIPART_RESOLVER_BEAN_NAME, OUTPUT_FLASH_MAP_ATTRIBUTE, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger, REQUEST_TO_VIEW_NAME_TRANSLATOR_BEAN_NAME, THEME_RESOLVER_ATTRIBUTE, THEME_RESOLVER_BEAN_NAME, THEME_SOURCE_ATTRIBUTE, VIEW_RESOLVER_BEAN_NAME, WEB_APPLICATION_CONTEXT_ATTRIBUTE| Constructor and Description |
|---|
GrailsDispatcherServlet()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.http.HttpServletRequest |
checkMultipart(javax.servlet.http.HttpServletRequest request)
Convert the request into a multipart request.
|
protected void |
copyParamsFromPreviousRequest(org.springframework.web.context.request.RequestAttributes previousRequestAttributes,
GrailsWebRequest requestAttributes) |
protected org.springframework.web.context.WebApplicationContext |
createWebApplicationContext(org.springframework.web.context.WebApplicationContext parent) |
void |
destroy() |
protected void |
doDispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.springframework.web.servlet.HandlerInterceptor[] |
establishInterceptors(org.springframework.web.context.WebApplicationContext webContext)
Evalutes the given WebApplicationContext for all HandlerInterceptor and WebRequestInterceptor instances
|
org.springframework.web.servlet.HandlerExecutionChain |
getHandler(javax.servlet.http.HttpServletRequest request) |
protected void |
initFrameworkServlet() |
protected void |
initStrategies(org.springframework.context.ApplicationContext context) |
void |
setApplication(org.codehaus.groovy.grails.commons.GrailsApplication application)
Dependency injection for the application.
|
protected void |
triggerAfterCompletion(org.springframework.web.servlet.HandlerExecutionChain mappedHandler,
int interceptorIndex,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception ex)
Trigger afterCompletion callbacks on the mapped HandlerInterceptors.
|
protected javax.servlet.http.HttpServletResponse |
useWrappedOrOriginalResponse(javax.servlet.http.HttpServletResponse response) |
buildLocaleContext, cleanupMultipart, createDefaultStrategy, doService, getDefaultStrategies, getDefaultStrategy, getDefaultViewName, getHandler, getHandlerAdapter, getMultipartResolver, getThemeSource, noHandlerFound, onRefresh, processHandlerException, render, resolveViewName, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolversapplyInitializers, configureAndRefreshWebApplicationContext, createWebApplicationContext, doDelete, doGet, doOptions, doPost, doPut, doTrace, findWebApplicationContext, getContextAttribute, getContextClass, getContextConfigLocation, getContextId, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initServletBean, initWebApplicationContext, onApplicationEvent, postProcessWebApplicationContext, processRequest, refresh, setContextAttribute, setContextClass, setContextConfigLocation, setContextId, setContextInitializerClasses, setContextInitializers, setDispatchOptionsRequest, setDispatchTraceRequest, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritableaddRequiredProperty, getServletContext, getServletName, init, initBeanWrapper, setEnvironmentdoHead, getLastModified, service, serviceprotected org.springframework.web.servlet.HandlerInterceptor[] interceptors
protected org.springframework.web.multipart.MultipartResolver multipartResolver
protected org.springframework.web.servlet.ViewResolver layoutViewResolver
protected void initFrameworkServlet()
throws javax.servlet.ServletException,
org.springframework.beans.BeansException
initFrameworkServlet in class org.springframework.web.servlet.FrameworkServletjavax.servlet.ServletExceptionorg.springframework.beans.BeansExceptionprotected void initStrategies(org.springframework.context.ApplicationContext context)
initStrategies in class org.springframework.web.servlet.DispatcherServletprotected org.springframework.web.context.WebApplicationContext createWebApplicationContext(org.springframework.web.context.WebApplicationContext parent)
throws org.springframework.beans.BeansException
createWebApplicationContext in class org.springframework.web.servlet.FrameworkServletorg.springframework.beans.BeansExceptionprotected org.springframework.web.servlet.HandlerInterceptor[] establishInterceptors(org.springframework.web.context.WebApplicationContext webContext)
webContext - The WebApplicationContextpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class org.springframework.web.servlet.FrameworkServletpublic void setApplication(org.codehaus.groovy.grails.commons.GrailsApplication application)
application - the applicationprotected void doDispatch(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
doDispatch in class org.springframework.web.servlet.DispatcherServletjava.lang.Exceptionprotected javax.servlet.http.HttpServletResponse useWrappedOrOriginalResponse(javax.servlet.http.HttpServletResponse response)
protected void copyParamsFromPreviousRequest(org.springframework.web.context.request.RequestAttributes previousRequestAttributes,
GrailsWebRequest requestAttributes)
protected void triggerAfterCompletion(org.springframework.web.servlet.HandlerExecutionChain mappedHandler,
int interceptorIndex,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception ex)
throws java.lang.Exception
mappedHandler - the mapped HandlerExecutionChaininterceptorIndex - index of last interceptor that successfully completedex - Exception thrown on handler execution, or null if nonejava.lang.ExceptionHandlerInterceptor.afterCompletion(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, java.lang.Exception)protected javax.servlet.http.HttpServletRequest checkMultipart(javax.servlet.http.HttpServletRequest request)
throws org.springframework.web.multipart.MultipartException
checkMultipart in class org.springframework.web.servlet.DispatcherServletrequest - current HTTP requestorg.springframework.web.multipart.MultipartExceptionpublic org.springframework.web.servlet.HandlerExecutionChain getHandler(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
getHandler in class org.springframework.web.servlet.DispatcherServletjava.lang.Exception