org.shept.org.springframework.web.servlet.mvc.delegation
public class MultiActionController extends DelegatingController
| Modifier and Type | Field and Description |
|---|---|
private static String |
CLEAR_FORM_CACHE_PARAM |
protected String |
clearCacheParam |
protected boolean |
enableClearCache |
private static String |
FORM_TITLE_MODEL_ATTRIBUTE |
protected SessionFormCache |
formCache |
private String |
formTitleAttribute |
protected CommandObjectProvider |
objectProvider |
private String |
titleCode |
DEFAULT_COMMAND_NAME, LAST_MODIFIED_METHOD_SUFFIX, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger| Constructor and Description |
|---|
MultiActionController() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
buildCommandObject(javax.servlet.http.HttpServletRequest request) |
String |
getClearCacheParam() |
protected Object |
getCommandObject(javax.servlet.http.HttpServletRequest request,
Class clazz)
Create a new command object of the given class.
|
SessionFormCache |
getFormCache() |
String |
getFormTitleAttribute() |
long |
getLastModified(javax.servlet.http.HttpServletRequest request)
Try to find an XXXXLastModified method, where XXXX is the name of a handler.
|
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Determine a handler method and invoke it.
|
protected void |
postProcessModel(javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.ModelAndView mav) |
void |
setClearCacheParam(String clearCacheParam) |
void |
setEnableClearCache(boolean enableClearCache) |
void |
setFormCache(SessionFormCache formCache) |
void |
setFormTitleAttribute(String formTitleAttribute) |
void |
setObjectProvider(CommandObjectProvider objectProvider) |
void |
setTitleCode(String titleCode) |
afterPropertiesSet, createBinder, getCommandName, getFormView, getRedirectUrl, getWebBindingInitializer, handleNoSuchRequestHandlingMethod, initBinder, massageReturnValueIfNecessary, setActionResolver, setBeanName, setCommandClass, setDelegates, setFormView, setRedirectUrl, setWebBindingInitializerhandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprivate static String CLEAR_FORM_CACHE_PARAM
private static String FORM_TITLE_MODEL_ATTRIBUTE
protected String clearCacheParam
protected boolean enableClearCache
protected SessionFormCache formCache
protected CommandObjectProvider objectProvider
private String formTitleAttribute
private String titleCode
protected Object getCommandObject(javax.servlet.http.HttpServletRequest request, Class clazz) throws Exception
DelegatingControllerThis implementation uses BeanUtils.instantiateClass,
so commands need to have public no-arg constructors.
Subclasses can override this implementation if desired.
getCommandObject in class DelegatingControllerException - if the command object could not be instantiatedBeanUtils.instantiateClass(Class)protected Object buildCommandObject(javax.servlet.http.HttpServletRequest request)
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
DelegatingControllerhandleRequestInternal in class DelegatingControllerExceptionMethodNameResolver.getHandlerMethodName(javax.servlet.http.HttpServletRequest),
#invokeNamedMethod,
DelegatingController.handleNoSuchRequestHandlingMethod(org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)protected void postProcessModel(javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.ModelAndView mav)
throws Exception
postProcessModel in class DelegatingControllerExceptionpublic SessionFormCache getFormCache()
public void setFormCache(SessionFormCache formCache)
sessionFormCache - the sessionFormCache to setpublic long getLastModified(javax.servlet.http.HttpServletRequest request)
DelegatingControllergetLastModified in interface org.springframework.web.servlet.mvc.LastModifiedgetLastModified in class DelegatingControllerLastModified.getLastModified(HttpServletRequest)public void setObjectProvider(CommandObjectProvider objectProvider)
objectProvider - the objectProvider to setpublic String getClearCacheParam()
public void setClearCacheParam(String clearCacheParam)
clearCacheParam - the clearCacheParam to setpublic void setEnableClearCache(boolean enableClearCache)
enableClearCache - the enableClearCache to setpublic void setTitleCode(String titleCode)
titleCode - the titleCode to setpublic String getFormTitleAttribute()
public void setFormTitleAttribute(String formTitleAttribute)
formTitleAttribute - the formTitleAttribute to setCopyright © 2014. All Rights Reserved.