public.javadoc.org.spincast.plugins.undertow.SpincastClassPathDirResourceManagerDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastClassPathDirResourceManagerDefault (org.spincast:spincast-framework 2.1.1 API)
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
Constructor
Description
SpincastClassPathDirResourceManagerDefault(String rootUrl,
String dirPath,
SpincastUtils spincastUtils)
-
Method Summary
Modifier and Type
Method
Description
void
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 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
- Specified by:
close
in interface AutoCloseable
- Specified by:
close
in interface Closeable
- Throws:
IOException