类 WebFileHttpRequestHandler

java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.resource.ResourceHttpRequestHandler
com.publiccms.common.servlet.WebFileHttpRequestHandler
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.EmbeddedValueResolverAware, org.springframework.web.context.ServletContextAware, org.springframework.web.cors.CorsConfigurationSource, org.springframework.web.HttpRequestHandler

public class WebFileHttpRequestHandler extends org.springframework.web.servlet.resource.ResourceHttpRequestHandler
MultiSiteWebHttpRequestHandler 多站点静态资源处理器
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private static org.springframework.core.io.Resource
     
     

    从类继承的字段 org.springframework.web.servlet.support.WebContentGenerator

    HEADER_CACHE_CONTROL, METHOD_GET, METHOD_HEAD, METHOD_POST
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
     
    protected org.springframework.core.io.Resource
    getResource(jakarta.servlet.http.HttpServletRequest request)
     
    void
    handleRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     

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

    getContentNegotiationManager, getCorsConfiguration, getEtagGenerator, getLocations, getMediaType, getMediaTypes, getResourceHttpMessageConverter, getResourceRegionHttpMessageConverter, getResourceResolvers, getResourceTransformers, getUrlPathHelper, initAllowedLocations, initContentNegotiationStrategy, isInvalidPath, isOptimizeLocations, isUseLastModified, processPath, setContentNegotiationManager, setCorsConfiguration, setEmbeddedValueResolver, setEtagGenerator, setHeaders, setLocations, setLocationValues, setMediaTypes, setOptimizeLocations, setResourceHttpMessageConverter, setResourceRegionHttpMessageConverter, setResourceResolvers, setResourceTransformers, setUrlPathHelper, setUseLastModified, toString

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

    applyCacheControl, applyCacheSeconds, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isRequireSession, prepareResponse, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setVaryByRequestHeaders

    从类继承的方法 org.springframework.web.context.support.WebApplicationObjectSupport

    getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext

    从类继承的方法 org.springframework.context.support.ApplicationObjectSupport

    getApplicationContext, getMessageSourceAccessor, initApplicationContext, obtainApplicationContext, requiredContextClass, setApplicationContext

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

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

    • siteComponent

      private SiteComponent siteComponent
    • favicon

      private static org.springframework.core.io.Resource favicon
  • 构造器详细资料

    • WebFileHttpRequestHandler

      public WebFileHttpRequestHandler(SiteComponent siteComponent)
      参数:
      siteComponent -
  • 方法详细资料

    • handleRequest

      public void handleRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException
      指定者:
      handleRequest 在接口中 org.springframework.web.HttpRequestHandler
      覆盖:
      handleRequest 在类中 org.springframework.web.servlet.resource.ResourceHttpRequestHandler
      抛出:
      jakarta.servlet.ServletException
      IOException
    • getResource

      protected org.springframework.core.io.Resource getResource(jakarta.servlet.http.HttpServletRequest request) throws IOException
      覆盖:
      getResource 在类中 org.springframework.web.servlet.resource.ResourceHttpRequestHandler
      抛出:
      IOException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      覆盖:
      afterPropertiesSet 在类中 org.springframework.web.servlet.resource.ResourceHttpRequestHandler
      抛出:
      Exception