public void handle(io.vertx.core.http.HttpServerRequest event) { handler.handle(io.vertx.rxjava.core.http.HttpServerRequest.newInstance(event)); } });
public void handle(io.vertx.core.http.HttpServerRequest event) { handler.handle(io.vertx.rxjava.core.http.HttpServerRequest.newInstance(event)); } });
/** * @return the HTTP request object */ public io.vertx.rxjava.core.http.HttpServerRequest request() { if (cached_0 != null) { return cached_0; } io.vertx.rxjava.core.http.HttpServerRequest ret = io.vertx.rxjava.core.http.HttpServerRequest.newInstance(delegate.request()); cached_0 = ret; return ret; }
/** * @return the HTTP request object */ public io.vertx.rxjava.core.http.HttpServerRequest request() { if (cached_0 != null) { return cached_0; } io.vertx.rxjava.core.http.HttpServerRequest ret = io.vertx.rxjava.core.http.HttpServerRequest.newInstance(delegate.request()); cached_0 = ret; return ret; }
@Override public void filter(ContainerRequestContext requestContext) throws IOException { Vertx vertx = ResteasyProviderFactory.getContextData(io.vertx.core.Vertx.class); HttpServerRequest req = ResteasyProviderFactory.getContextData(HttpServerRequest.class); HttpServerResponse resp = ResteasyProviderFactory.getContextData(HttpServerResponse.class); // rx2 ResteasyProviderFactory.pushContext(io.vertx.reactivex.core.Vertx.class, io.vertx.reactivex.core.Vertx.newInstance(vertx)); ResteasyProviderFactory.pushContext(io.vertx.reactivex.core.http.HttpServerRequest.class, io.vertx.reactivex.core.http.HttpServerRequest.newInstance(req)); ResteasyProviderFactory.pushContext(io.vertx.reactivex.core.http.HttpServerResponse.class, io.vertx.reactivex.core.http.HttpServerResponse.newInstance(resp)); // rx1 ResteasyProviderFactory.pushContext(io.vertx.rxjava.core.Vertx.class, io.vertx.rxjava.core.Vertx.newInstance(vertx)); ResteasyProviderFactory.pushContext(io.vertx.rxjava.core.http.HttpServerRequest.class, io.vertx.rxjava.core.http.HttpServerRequest.newInstance(req)); ResteasyProviderFactory.pushContext(io.vertx.rxjava.core.http.HttpServerResponse.class, io.vertx.rxjava.core.http.HttpServerResponse.newInstance(resp)); ResteasyProviderFactory.pushContext(ServletContext.class, AppGlobals.get().getGlobal(ServletContext.class)); }
@Override public void filter(ContainerRequestContext requestContext) throws IOException { Vertx vertx = ResteasyProviderFactory.getContextData(io.vertx.core.Vertx.class); HttpServerRequest req = ResteasyProviderFactory.getContextData(HttpServerRequest.class); HttpServerResponse resp = ResteasyProviderFactory.getContextData(HttpServerResponse.class); // rx2 ResteasyProviderFactory.pushContext(io.vertx.reactivex.core.Vertx.class, io.vertx.reactivex.core.Vertx.newInstance(vertx)); ResteasyProviderFactory.pushContext(io.vertx.reactivex.core.http.HttpServerRequest.class, io.vertx.reactivex.core.http.HttpServerRequest.newInstance(req)); ResteasyProviderFactory.pushContext(io.vertx.reactivex.core.http.HttpServerResponse.class, io.vertx.reactivex.core.http.HttpServerResponse.newInstance(resp)); // rx1 ResteasyProviderFactory.pushContext(io.vertx.rxjava.core.Vertx.class, io.vertx.rxjava.core.Vertx.newInstance(vertx)); ResteasyProviderFactory.pushContext(io.vertx.rxjava.core.http.HttpServerRequest.class, io.vertx.rxjava.core.http.HttpServerRequest.newInstance(req)); ResteasyProviderFactory.pushContext(io.vertx.rxjava.core.http.HttpServerResponse.class, io.vertx.rxjava.core.http.HttpServerResponse.newInstance(resp)); ResteasyProviderFactory.pushContext(ServletContext.class, AppGlobals.get().getGlobal(ServletContext.class)); }