Package org.spincast.plugins.undertow
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
ConstructorDescriptionSpincastFileSystemDirResourceManager
(String baseUrl, File dir) SpincastFileSystemDirResourceManager
(String baseUrl, File dir, long transferMinSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected File
getDir()
io.undertow.server.handlers.resource.Resource
getResource
(String path) 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
-
Constructor Details
-
SpincastFileSystemDirResourceManager
-
SpincastFileSystemDirResourceManager
-
-
Method Details
-
getBaseUrl
-
getDir
-
getResource
- Specified by:
getResource
in interfaceio.undertow.server.handlers.resource.ResourceManager
- Overrides:
getResource
in classio.undertow.server.handlers.resource.PathResourceManager
-