|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.servlet.DispatcherServlet org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet
public class GrailsDispatcherServlet extends DispatcherServlet
Handles incoming requests for Grails.
Loads the Spring configuration based on the Grails application in the parent application context.Field Summary | |
---|---|
protected HandlerInterceptor[] |
interceptors
|
protected MultipartResolver |
multipartResolver
|
Constructor Summary | |
GrailsDispatcherServlet()
Constructor. |
Method Summary | |
---|---|
protected HttpServletRequest
|
checkMultipart(HttpServletRequest request)
Convert the request into a multipart request. |
protected void
|
copyParamsFromPreviousRequest(GrailsWebRequest previousRequestAttributes, GrailsWebRequest requestAttributes)
|
protected WebApplicationContext
|
createWebApplicationContext(WebApplicationContext parent)
|
void
|
destroy()
|
protected void
|
doDispatch(HttpServletRequest request, HttpServletResponse response)
|
protected HandlerInterceptor[]
|
establishInterceptors(WebApplicationContext webContext)
Evalutes the given WebApplicationContext for all HandlerInterceptor and WebRequestInterceptor instances |
HandlerExecutionChain
|
getHandler(HttpServletRequest request, boolean cache)
|
protected void
|
initFrameworkServlet()
|
protected void
|
initStrategies(ApplicationContext context)
|
void
|
setApplication(GrailsApplication application)
Dependency injection for the application. |
protected void
|
triggerAfterCompletion(HandlerExecutionChain mappedHandler, int interceptorIndex, HttpServletRequest request, HttpServletResponse response, java.lang.Exception ex)
Trigger afterCompletion callbacks on the mapped HandlerInterceptors. |
protected HttpServletResponse
|
useWrappedOrOriginalResponse(HttpServletResponse response)
|
Field Detail |
---|
protected HandlerInterceptor[] interceptors
protected MultipartResolver multipartResolver
Constructor Detail |
---|
public GrailsDispatcherServlet()
Method Detail |
---|
@Override protected HttpServletRequest checkMultipart(HttpServletRequest request)
request
- current HTTP request
@SuppressWarnings({ "unchecked", "rawtypes" }) protected void copyParamsFromPreviousRequest(GrailsWebRequest previousRequestAttributes, GrailsWebRequest requestAttributes)
@Override protected WebApplicationContext createWebApplicationContext(WebApplicationContext parent)
@Override public void destroy()
@Override protected void doDispatch(HttpServletRequest request, HttpServletResponse response)
protected HandlerInterceptor[] establishInterceptors(WebApplicationContext webContext)
webContext
- The WebApplicationContext
@Override public HandlerExecutionChain getHandler(HttpServletRequest request, boolean cache)
@Override protected void initFrameworkServlet()
@Override protected void initStrategies(ApplicationContext context)
public void setApplication(GrailsApplication application)
application
- the application
protected void triggerAfterCompletion(HandlerExecutionChain mappedHandler, int interceptorIndex, HttpServletRequest request, HttpServletResponse response, java.lang.Exception ex)
mappedHandler
- the mapped HandlerExecutionChaininterceptorIndex
- index of last interceptor that successfully completedex
- Exception thrown on handler execution, or null
if none
protected HttpServletResponse useWrappedOrOriginalResponse(HttpServletResponse response)
Groovy Documentation