Package org.spincast.plugins.undertow
Class SpincastClassPathFileResourceManagerDefault
java.lang.Object
org.spincast.plugins.undertow.SpincastClassPathFileResourceManagerDefault
- All Implemented Interfaces:
io.undertow.server.handlers.resource.ResourceManager
,Closeable
,AutoCloseable
,SpincastClassPathFileResourceManager
public class SpincastClassPathFileResourceManagerDefault
extends Object
implements SpincastClassPathFileResourceManager
-
Field Summary
Fields inherited from interface io.undertow.server.handlers.resource.ResourceManager
EMPTY_RESOURCE_MANAGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected String
io.undertow.server.handlers.resource.Resource
getResource
(String path) boolean
void
registerResourceChangeListener
(io.undertow.server.handlers.resource.ResourceChangeListener listener) void
removeResourceChangeListener
(io.undertow.server.handlers.resource.ResourceChangeListener listener)
-
Constructor Details
-
SpincastClassPathFileResourceManagerDefault
-
-
Method Details
-
getFilePath
-
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
-