Class FileResourceFetcher

  • All Implemented Interfaces:
    ResourceFetcher

    public class FileResourceFetcher
    extends Object
    implements ResourceFetcher
    Fetch a file from the local filesystem.
    Author:
    Marc Savy <marc@rhymewithgravy.com>
    • Constructor Detail

      • FileResourceFetcher

        public FileResourceFetcher​(io.vertx.core.Vertx vertx,
                                   URI uri,
                                   Map<String,​String> config)
    • Method Detail

      • fetch

        public void fetch​(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> resultHandler)
        Description copied from interface: ResourceFetcher
        Fetch a resource and return its content via the resultHandler
        Specified by:
        fetch in interface ResourceFetcher
        Parameters:
        resultHandler - the result handler