Class SpincastClassPathFileResourceManagerDefault

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

public class SpincastClassPathFileResourceManagerDefault extends Object implements SpincastClassPathFileResourceManager
  • Constructor Details

    • SpincastClassPathFileResourceManagerDefault

      public SpincastClassPathFileResourceManagerDefault(String filePath)
  • Method Details

    • getFilePath

      protected String getFilePath()
    • 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