io.vertx.up.extension.pointer.PluginRegion Maven / Gradle / Ivy
package io.vertx.up.extension.pointer;
import io.vertx.ext.web.RoutingContext;
import io.vertx.up.commune.Envelop;
import io.vertx.up.extension.PlugRegion;
import io.vertx.up.util.Ut;
class PluginRegion {
/*
* Plugin for Region
*/
private static final String REGION = "region";
static void before(final RoutingContext context, final Envelop envelop) {
Plugin.mountPlugin(REGION, (auditCls, config) -> {
/*
* Data Region Before: Request
*/
final PlugRegion region = Ut.singleton(auditCls);
region.bind(config).before(context, envelop);
});
}
static void after(final RoutingContext context, final Envelop envelop) {
Plugin.mountPlugin(REGION, (auditCls, config) -> {
/*
* Data Region After: Response
*/
final PlugRegion region = Ut.singleton(auditCls);
region.bind(config).after(context, envelop);
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy