Package org.spincast.plugins.undertow
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
-
Field Summary
Fields inherited from interface io.undertow.server.handlers.resource.ResourceManager
EMPTY_RESOURCE_MANAGER
-
Constructor Summary
ConstructorDescriptionSpincastClassPathDirResourceManagerDefault
(String rootUrl, String dirPath, SpincastUtils spincastUtils) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected String
io.undertow.server.handlers.resource.Resource
getResource
(String path) protected String
protected SpincastUtils
boolean
void
registerResourceChangeListener
(io.undertow.server.handlers.resource.ResourceChangeListener listener) void
removeResourceChangeListener
(io.undertow.server.handlers.resource.ResourceChangeListener listener)
-
Constructor Details
-
SpincastClassPathDirResourceManagerDefault
public SpincastClassPathDirResourceManagerDefault(String rootUrl, String dirPath, SpincastUtils spincastUtils)
-
-
Method Details
-
getRootUrl
-
getDirPath
-
getSpincastUtils
-
getResource
- Specified by:
getResource
in interfaceio.undertow.server.handlers.resource.ResourceManager
- Throws:
IOException
-
isResourceChangeListenerSupported
public boolean isResourceChangeListenerSupported()- Specified by:
isResourceChangeListenerSupported
in interfaceio.undertow.server.handlers.resource.ResourceManager
-
registerResourceChangeListener
public void registerResourceChangeListener(io.undertow.server.handlers.resource.ResourceChangeListener listener) - Specified by:
registerResourceChangeListener
in interfaceio.undertow.server.handlers.resource.ResourceManager
-
removeResourceChangeListener
public void removeResourceChangeListener(io.undertow.server.handlers.resource.ResourceChangeListener listener) - Specified by:
removeResourceChangeListener
in interfaceio.undertow.server.handlers.resource.ResourceManager
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-