类 WebDispatcherServlet

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
com.publiccms.common.servlet.WebDispatcherServlet
所有已实现的接口:
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 WebDispatcherServlet extends CommonDispatcherServlet
WebDispatcherServlet 多站点动态请求处理Servlet
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
     
    private static final int
     
    private org.springframework.web.HttpRequestHandler
     
    private static final long
     
     

    从类继承的字段 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
  • 构造器概要

    构造器
    构造器
    说明
    WebDispatcherServlet(org.springframework.web.context.WebApplicationContext applicationContext, org.springframework.web.HttpRequestHandler installHandler)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    doService(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)
     

    从类继承的方法 com.publiccms.common.servlet.CommonDispatcherServlet

    render

    从类继承的方法 org.springframework.web.servlet.DispatcherServlet

    buildLocaleContext, checkMultipart, cleanupMultipart, createDefaultStrategy, doDispatch, 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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • siteComponent

      private SiteComponent siteComponent
    • GLOBLE_URL_PREFIX

      public static final String GLOBLE_URL_PREFIX
      另请参阅:
    • GLOBLE_URL_PREFIX_LENGTH

      private static final int GLOBLE_URL_PREFIX_LENGTH
    • installHandler

      private org.springframework.web.HttpRequestHandler installHandler
  • 构造器详细资料

    • WebDispatcherServlet

      public WebDispatcherServlet(org.springframework.web.context.WebApplicationContext applicationContext, org.springframework.web.HttpRequestHandler installHandler)
      参数:
      applicationContext -
      installHandler -
  • 方法详细资料

    • doService

      protected void doService(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception
      覆盖:
      doService 在类中 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 在类中 CommonDispatcherServlet
      抛出:
      Exception
    • getSiteComponent

      public SiteComponent getSiteComponent()
      返回:
      site component