Class SpincastClassPathDirResourceManagerDefault

java.lang.Object
org.spincast.plugins.undertow.SpincastClassPathDirResourceManagerDefault
All Implemented Interfaces:
io.undertow.server.handlers.resource.ResourceManager, Closeable, AutoCloseable, SpincastClassPathDirResourceManager

public class SpincastClassPathDirResourceManagerDefault extends Object implements SpincastClassPathDirResourceManager
  • Constructor Details

    • SpincastClassPathDirResourceManagerDefault

      public SpincastClassPathDirResourceManagerDefault(String rootUrl, String dirPath, SpincastUtils spincastUtils)
  • Method Details

    • getRootUrl

      protected String getRootUrl()
    • getDirPath

      protected String getDirPath()
    • getSpincastUtils

      protected SpincastUtils getSpincastUtils()
    • getResource

      public io.undertow.server.handlers.resource.Resource getResource(String path) throws IOException
      Specified by:
      getResource in interface io.undertow.server.handlers.resource.ResourceManager
      Throws:
      IOException
    • isResourceChangeListenerSupported

      public boolean isResourceChangeListenerSupported()
      Specified by:
      isResourceChangeListenerSupported in interface io.undertow.server.handlers.resource.ResourceManager
    • registerResourceChangeListener

      public void registerResourceChangeListener(io.undertow.server.handlers.resource.ResourceChangeListener listener)
      Specified by:
      registerResourceChangeListener in interface io.undertow.server.handlers.resource.ResourceManager
    • removeResourceChangeListener

      public void removeResourceChangeListener(io.undertow.server.handlers.resource.ResourceChangeListener listener)
      Specified by:
      removeResourceChangeListener in interface io.undertow.server.handlers.resource.ResourceManager
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException