Class SpincastFileSystemDirResourceManager

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

public class SpincastFileSystemDirResourceManager extends io.undertow.server.handlers.resource.FileResourceManager
Manager to serve files under a specific directory.

The directory may not exist yet.

  • 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
     
    SpincastFileSystemDirResourceManager(String baseUrl, File dir, long transferMinSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    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

    • SpincastFileSystemDirResourceManager

      public SpincastFileSystemDirResourceManager(String baseUrl, File dir)
    • SpincastFileSystemDirResourceManager

      public SpincastFileSystemDirResourceManager(String baseUrl, File dir, long transferMinSize)
  • Method Details

    • getBaseUrl

      protected String getBaseUrl()
    • getDir

      protected File getDir()
    • 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