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<io.apiman.gateway.engine.beans.Api>> apiResultHandler)
Set the API result handler, invoked when APIs have been unmarshalled successfully.
|
PolicyConfigLoader |
setClientResultHandler(io.vertx.core.Handler<List<io.apiman.gateway.engine.beans.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<io.apiman.gateway.engine.beans.Client>> clientResultHandler)
clientResultHandler - the handlerpublic PolicyConfigLoader setApiResultHandler(io.vertx.core.Handler<List<io.apiman.gateway.engine.beans.Api>> apiResultHandler)
apiResultHandler - the API result handlerpublic PolicyConfigLoader setExceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
exceptionHandler - the exception handlerpublic void load()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.