public interface ResourceFetcher
Interface for asynchronously fetching simple remote resources, for instance via HTTP or local file-system.
Any exceptions are returned via exceptionHandler(Handler), which
the user should set if they are interested in handling errors.
| Modifier and Type | Method and Description |
|---|---|
ResourceFetcher |
exceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
Set an exception handler, invoked in an error occurs.
|
void |
fetch(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> resultHandler)
Fetch a resource and return its content via the resultHandler
|
void fetch(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> resultHandler)
resultHandler - the result handlerResourceFetcher exceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
exceptionHandler - the exception handlerCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.