public class ServletForwardingController
extends org.springframework.web.servlet.mvc.AbstractController
implements org.springframework.beans.factory.BeanNameAware
| Constructor and Description |
|---|
ServletForwardingController() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setBeanName(String name) |
void |
setServletName(String servletName) |
protected boolean |
useInclude(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Determine whether to use RequestDispatcher's
include or
forward method. |
handleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext@PreDestroy public void destroy()
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerExceptionpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setServletName(String servletName)
protected boolean useInclude(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
include or
forward method.
Performs a check whether an include URI attribute is found in the request, indicating an include request, and whether the response has already been committed. In both cases, an include will be performed, as a forward is not possible anymore.
request - current HTTP requestresponse - current HTTP responsetrue for include, false for forwardRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse),
RequestDispatcher.include(javax.servlet.ServletRequest, javax.servlet.ServletResponse),
ServletResponse.isCommitted(),
WebUtils.isIncludeRequest(javax.servlet.ServletRequest)Copyright © 2015 Revolution Systems Inc.. All rights reserved.