All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.up.extension.PlugRegion Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package io.vertx.up.extension;

import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.RoutingContext;
import io.vertx.up.commune.Envelop;

/**
 * 「Extension」
 * Name: Data Region
 * Data Region when you want to do some modification on Envelop,
 * There are two position to process region modification:
 * 1) Before Envelop request building & sending.
 * 2) After Response replying from agent.
 * This plugin exist in agent only and could not be used in worker, standard
 */
public interface PlugRegion {
    /*
     * DataRegion bind for plug
     */
    PlugRegion bind(JsonObject config);

    /*
     * Request processing
     */
    void before(RoutingContext context, Envelop request);

    /*
     * Response processing
     */
    void after(RoutingContext context, Envelop response);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy