Class SpincastFileSystemFileResourceManager

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

public class SpincastFileSystemFileResourceManager extends io.undertow.server.handlers.resource.FileResourceManager
Manager to get a specific File.

The file may not exist yet.

Doesn't check if the file changes or not.

  • Nested Class Summary

    Nested classes/interfaces inherited from class io.undertow.server.handlers.resource.PathResourceManager

    io.undertow.server.handlers.resource.PathResourceManager.Builder, io.undertow.server.handlers.resource.PathResourceManager.ETagFunction
  • Field Summary

    Fields inherited from class io.undertow.server.handlers.resource.PathResourceManager

    base, fileSystem

    Fields inherited from interface io.undertow.server.handlers.resource.ResourceManager

    EMPTY_RESOURCE_MANAGER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SpincastFileSystemFileResourceManager(File file, long transferMinSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected File
     
    io.undertow.server.handlers.resource.Resource
     

    Methods inherited from class io.undertow.server.handlers.resource.FileResourceManager

    getBase, setBase

    Methods inherited from class io.undertow.server.handlers.resource.PathResourceManager

    builder, close, getBasePath, getFileResource, getTransferMinSize, isResourceChangeListenerSupported, registerResourceChangeListener, removeResourceChangeListener, setBase

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpincastFileSystemFileResourceManager

      public SpincastFileSystemFileResourceManager(File file)
    • SpincastFileSystemFileResourceManager

      public SpincastFileSystemFileResourceManager(File file, long transferMinSize)
  • Method Details

    • getFile

      protected File getFile()
    • getResource

      public io.undertow.server.handlers.resource.Resource getResource(String path)
      Specified by:
      getResource in interface io.undertow.server.handlers.resource.ResourceManager
      Overrides:
      getResource in class io.undertow.server.handlers.resource.PathResourceManager