Class FessWebResourceRoot

java.lang.Object
org.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.webresources.StandardRoot
org.codelibs.fess.tomcat.webresources.FessWebResourceRoot
All Implemented Interfaces:
MBeanRegistration, org.apache.catalina.JmxEnabled, org.apache.catalina.Lifecycle, org.apache.catalina.WebResourceRoot

public class FessWebResourceRoot extends org.apache.catalina.webresources.StandardRoot
Fess-specific web resource root implementation for Tomcat. This class extends StandardRoot to provide custom web resource handling for Fess plugins, including support for plugin JAR files in the WEB-INF/plugin directory.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.catalina.Lifecycle

    org.apache.catalina.Lifecycle.SingleUse

    Nested classes/interfaces inherited from interface org.apache.catalina.WebResourceRoot

    org.apache.catalina.WebResourceRoot.ArchiveIndexStrategy, org.apache.catalina.WebResourceRoot.CacheStrategy, org.apache.catalina.WebResourceRoot.ResourceSetType
  • Field Summary

    Fields inherited from class org.apache.catalina.webresources.StandardRoot

    sm

    Fields inherited from interface org.apache.catalina.Lifecycle

    AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
  • Constructor Summary

    Constructors
    Constructor
    Description
    FessWebResourceRoot(org.apache.catalina.Context context)
    Constructs a new FessWebResourceRoot with the specified context.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Processes WEB-INF/lib directory and additionally scans WEB-INF/plugin for Fess plugins.

    Methods inherited from class org.apache.catalina.webresources.StandardRoot

    addClassResources, addJarResources, addPostResources, addPreResources, backgroundProcess, createMainResourceSet, createWebResourceSet, createWebResourceSet, deregisterTrackedResource, destroyInternal, gc, getAllowLinking, getArchiveIndexStrategy, getArchiveIndexStrategyEnum, getBaseUrls, getCacheMaxSize, getCacheObjectMaxSize, getCacheStrategy, getCacheTtl, getClassLoaderResource, getClassLoaderResources, getClassResources, getContext, getDomainInternal, getJarResources, getObjectNameKeyProperties, getPostResources, getPreResources, getResource, getResource, getResourceInternal, getResources, getResourcesInternal, getTrackedResources, getTrackLockedFiles, initInternal, isCachingAllowed, isPackedWarFile, isReadOnly, list, listResources, listResources, listWebAppPaths, mkdir, registerTrackedResource, registerURLStreamHandlerFactory, setAllowLinking, setArchiveIndexStrategy, setCacheMaxSize, setCacheObjectMaxSize, setCacheStrategy, setCacheTtl, setCachingAllowed, setContext, setMainResources, setReadOnly, setTrackLockedFiles, startInternal, stopInternal, write

    Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase

    getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregister

    Methods inherited from class org.apache.catalina.util.LifecycleBase

    addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.catalina.Lifecycle

    addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
  • Constructor Details

    • FessWebResourceRoot

      public FessWebResourceRoot(org.apache.catalina.Context context)
      Constructs a new FessWebResourceRoot with the specified context.
      Parameters:
      context - the Tomcat context for this web resource root
  • Method Details

    • processWebInfLib

      protected void processWebInfLib() throws org.apache.catalina.LifecycleException
      Processes WEB-INF/lib directory and additionally scans WEB-INF/plugin for Fess plugins. This method extends the standard processing to include plugin JAR files that contain the "Fess-WebAppJar" manifest attribute.
      Overrides:
      processWebInfLib in class org.apache.catalina.webresources.StandardRoot
      Throws:
      org.apache.catalina.LifecycleException - if an error occurs during processing