Package org.joinfaces.undertow
Class CompositeResourceManager
java.lang.Object
org.joinfaces.undertow.CompositeResourceManager
- All Implemented Interfaces:
io.undertow.server.handlers.resource.ResourceManager
,Closeable
,AutoCloseable
public class CompositeResourceManager
extends Object
implements io.undertow.server.handlers.resource.ResourceManager
A
ResourceManager
that delegates to multiple ResourceManager
instances.- See Also:
-
Field Summary
Fields inherited from interface io.undertow.server.handlers.resource.ResourceManager
EMPTY_RESOURCE_MANAGER
-
Constructor Summary
ConstructorDescriptionCompositeResourceManager
(io.undertow.server.handlers.resource.ResourceManager... resourceManagers) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
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
-
CompositeResourceManager
public CompositeResourceManager(io.undertow.server.handlers.resource.ResourceManager... resourceManagers)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
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
-