类 CommonDispatcherServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.springframework.web.servlet.HttpServletBean
org.springframework.web.servlet.FrameworkServlet
org.springframework.web.servlet.DispatcherServlet
com.publiccms.common.servlet.CommonDispatcherServlet
- 所有已实现的接口:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.EnvironmentAware
,org.springframework.core.env.EnvironmentCapable
public class CommonDispatcherServlet
extends org.springframework.web.servlet.DispatcherServlet
兼容性提升
CommonDispatcherServlet
- 另请参阅:
-
字段概要
字段从类继承的字段 org.springframework.web.servlet.DispatcherServlet
EXCEPTION_ATTRIBUTE, 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
从类继承的字段 org.springframework.web.servlet.FrameworkServlet
DEFAULT_CONTEXT_CLASS, DEFAULT_NAMESPACE_SUFFIX, SERVLET_CONTEXT_PREFIX
从类继承的字段 org.springframework.web.servlet.HttpServletBean
logger
从类继承的字段 jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
构造器概要
构造器构造器说明CommonDispatcherServlet
(org.springframework.web.context.WebApplicationContext webApplicationContext) -
方法概要
修饰符和类型方法说明void
render
(org.springframework.web.servlet.ModelAndView mv, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected org.springframework.web.servlet.View
resolveViewName
(String viewName, Map<String, Object> model, Locale locale, jakarta.servlet.http.HttpServletRequest request) 从类继承的方法 org.springframework.web.servlet.DispatcherServlet
buildLocaleContext, checkMultipart, cleanupMultipart, createDefaultStrategy, doDispatch, doService, getDefaultStrategies, getDefaultStrategy, getDefaultViewName, getHandler, getHandlerAdapter, getHandlerMappings, getMultipartResolver, getThemeSource, initStrategies, noHandlerFound, onRefresh, processHandlerException, setCleanupAfterInclude, setDetectAllHandlerAdapters, setDetectAllHandlerExceptionResolvers, setDetectAllHandlerMappings, setDetectAllViewResolvers, setThrowExceptionIfNoHandlerFound
从类继承的方法 org.springframework.web.servlet.FrameworkServlet
applyInitializers, buildRequestAttributes, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, destroy, doDelete, doGet, doOptions, doPost, doPut, doTrace, findWebApplicationContext, getContextAttribute, getContextClass, getContextConfigLocation, getContextId, getNamespace, getServletContextAttributeName, getUsernameForRequest, getWebApplicationContext, initFrameworkServlet, initServletBean, initWebApplicationContext, isEnableLoggingRequestDetails, onApplicationEvent, postProcessWebApplicationContext, processRequest, refresh, service, setApplicationContext, setContextAttribute, setContextClass, setContextConfigLocation, setContextId, setContextInitializerClasses, setContextInitializers, setDispatchOptionsRequest, setDispatchTraceRequest, setEnableLoggingRequestDetails, setNamespace, setPublishContext, setPublishEvents, setThreadContextInheritable
从类继承的方法 org.springframework.web.servlet.HttpServletBean
addRequiredProperty, createEnvironment, getEnvironment, getServletName, init, initBeanWrapper, setEnvironment
从类继承的方法 jakarta.servlet.http.HttpServlet
doHead, getLastModified, init, service
从类继承的方法 jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, log, log
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
REDIRECT_URL_PREFIX_LENGTH
private static final int REDIRECT_URL_PREFIX_LENGTH -
SPECIAL_REDIRECT_URL
-
-
构造器详细资料
-
CommonDispatcherServlet
public CommonDispatcherServlet(org.springframework.web.context.WebApplicationContext webApplicationContext) - 参数:
webApplicationContext
-
-
-
方法详细资料
-
render
public void render(org.springframework.web.servlet.ModelAndView mv, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception - 覆盖:
render
在类中org.springframework.web.servlet.DispatcherServlet
- 抛出:
Exception
-
resolveViewName
protected org.springframework.web.servlet.View resolveViewName(String viewName, Map<String, Object> model, Locale locale, jakarta.servlet.http.HttpServletRequest request) throws Exception- 覆盖:
resolveViewName
在类中org.springframework.web.servlet.DispatcherServlet
- 抛出:
Exception
-