Class VfsSchemeResourceFinderFactory.VfsResourceFinder

java.lang.Object
org.glassfish.jersey.server.internal.AbstractResourceFinderAdapter
org.glassfish.jersey.server.internal.scanning.VfsSchemeResourceFinderFactory.VfsResourceFinder
All Implemented Interfaces:
AutoCloseable, Iterator<String>, ResourceFinder
Enclosing class:
VfsSchemeResourceFinderFactory

private static class VfsSchemeResourceFinderFactory.VfsResourceFinder extends AbstractResourceFinderAdapter
  • Field Details

    • current

      private Object current
    • next

      private Object next
    • openStream

      private final Method openStream
    • getName

      private final Method getName
    • isLeaf

      private final Method isLeaf
    • iterator

      private final Iterator<?> iterator
  • Constructor Details

    • VfsResourceFinder

      public VfsResourceFinder(URI uri, boolean recursive)
  • Method Details

    • getChildren

      private Iterator<?> getChildren(Object directory, boolean recursive)
    • bindMethod

      private Method bindMethod(Object object, String name)
    • invoke

      private <T> T invoke(Object instance, Method method, Class<T> type)
    • bindMethod0

      private Method bindMethod0(Object object, String name)
    • bindDirectory

      private Object bindDirectory(URI uri)
    • open

      public InputStream open()
      Description copied from interface: ResourceFinder
      Open current resource.
      Returns:
      input stream from which current resource can be loaded.
    • reset

      public void reset()
      Description copied from interface: ResourceFinder
      Reset the ResourceFinder instance.

      Upon calling this method the implementing class MUST reset its internal state to the initial state.

    • advance

      public boolean advance()
    • hasNext

      public boolean hasNext()
    • next

      public String next()