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:
  • Constructor Details

    • CompositeResourceManager

      public CompositeResourceManager(io.undertow.server.handlers.resource.ResourceManager... resourceManagers)
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • getResource

      public io.undertow.server.handlers.resource.Resource getResource(String path) throws IOException
      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