Search in sources :

Example 21 with Envelop

use of io.vertx.up.atom.Envelop in project vertx-zero by silentbalanceyh.

the class Flower method continuous.

static <T> Envelop continuous(final RoutingContext context, final T entity) {
    final Envelop envelop = Envelop.success(entity);
    envelop.setHeaders(context.request().headers());
    envelop.setUser(context.user());
    envelop.setSession(context.session());
    envelop.setContext(context.data());
    return envelop;
}
Also used : Envelop(io.vertx.up.atom.Envelop)

Aggregations

Envelop (io.vertx.up.atom.Envelop)21 Future (io.vertx.core.Future)8 Method (java.lang.reflect.Method)6 Vertx (io.vertx.core.Vertx)4 Message (io.vertx.core.eventbus.Message)4 JsonObject (io.vertx.core.json.JsonObject)4 Ux (io.vertx.up.aiki.Ux)4 Annal (io.vertx.up.log.Annal)4 TunnelClient (io.vertx.up.micro.ipc.client.TunnelClient)4 Instance (io.vertx.up.tool.mirror.Instance)4 IpcRequest (io.vertx.tp.ipc.eon.IpcRequest)2 io.vertx.up.exception._500UnexpectedRpcException (io.vertx.up.exception._500UnexpectedRpcException)2 Ut (io.vertx.up.tool.Ut)2 Values (io.vertx.zero.eon.Values)2 ManagedChannel (io.grpc.ManagedChannel)1 MultiMap (io.vertx.core.MultiMap)1 EventBus (io.vertx.core.eventbus.EventBus)1 IpcEnvelop (io.vertx.tp.ipc.eon.IpcEnvelop)1 UnityServiceGrpc (io.vertx.tp.ipc.service.UnityServiceGrpc)1 IpcData (io.vertx.up.atom.flux.IpcData)1