public class HttpResourceFetcher extends Object implements ResourceFetcher
AuthType. Otherwise None by default.AuthType for available options, such as BASIC, OAuth2, Keycloak, etc.AuthType| Constructor and Description |
|---|
HttpResourceFetcher(io.vertx.core.Vertx vertx,
URI uri,
Map<String,String> config,
boolean isHttps) |
| Modifier and Type | Method and Description |
|---|---|
HttpResourceFetcher |
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
|
public void fetch(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> resultHandler)
ResourceFetcherfetch in interface ResourceFetcherresultHandler - the result handlerpublic HttpResourceFetcher exceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
ResourceFetcherexceptionHandler in interface ResourceFetcherexceptionHandler - the exception handlerCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.