public class PolicyConfigLoader extends Object
| Constructor and Description |
|---|
PolicyConfigLoader(io.vertx.core.Vertx vertx,
URI policyConfigUri,
Map<String,String> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
load()
Excepute the fetcher and load the resources.
|
PolicyConfigLoader |
setApiResultHandler(io.vertx.core.Handler<List<Api>> apiResultHandler)
Set the API result handler, invoked when APIs have been unmarshalled successfully.
|
PolicyConfigLoader |
setClientResultHandler(io.vertx.core.Handler<List<Client>> clientResultHandler)
Set the client result handler, invoked when Clients have been unmarshalled successfully.
|
PolicyConfigLoader |
setExceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
Set the exception handler, invoked if an exception occurs.
|
public PolicyConfigLoader setClientResultHandler(io.vertx.core.Handler<List<Client>> clientResultHandler)
clientResultHandler - the handlerpublic PolicyConfigLoader setApiResultHandler(io.vertx.core.Handler<List<Api>> apiResultHandler)
apiResultHandler - the API result handlerpublic PolicyConfigLoader setExceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
exceptionHandler - the exception handlerpublic void load()
Copyright © 2022 Apiman. All rights reserved.