public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
public void handle(AsyncResult<io.vertx.core.http.HttpServerResponse> ar) { if (ar.succeeded()) { handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.core.http.HttpServerResponse.newInstance(ar.result()))); } else { handler.handle(io.vertx.core.Future.failedFuture(ar.cause())); } } });
/** * @return the HTTP response object */ public io.vertx.rxjava.core.http.HttpServerResponse response() { if (cached_1 != null) { return cached_1; } io.vertx.rxjava.core.http.HttpServerResponse ret = io.vertx.rxjava.core.http.HttpServerResponse.newInstance(delegate.response()); cached_1 = ret; return ret; }
/** * @return the response. Each instance of this class has an {@link io.vertx.rxjava.core.http.HttpServerResponse} instance attached to it. This is used to send the response back to the client. */ public io.vertx.rxjava.core.http.HttpServerResponse response() { if (cached_0 != null) { return cached_0; } io.vertx.rxjava.core.http.HttpServerResponse ret = io.vertx.rxjava.core.http.HttpServerResponse.newInstance(delegate.response()); cached_0 = ret; return ret; }
/** * @return the HTTP response object */ public io.vertx.rxjava.core.http.HttpServerResponse response() { if (cached_1 != null) { return cached_1; } io.vertx.rxjava.core.http.HttpServerResponse ret = io.vertx.rxjava.core.http.HttpServerResponse.newInstance(delegate.response()); cached_1 = ret; return ret; }
/** * @return the response. Each instance of this class has an {@link io.vertx.rxjava.core.http.HttpServerResponse} instance attached to it. This is used to send the response back to the client. */ public io.vertx.rxjava.core.http.HttpServerResponse response() { if (cached_0 != null) { return cached_0; } io.vertx.rxjava.core.http.HttpServerResponse ret = io.vertx.rxjava.core.http.HttpServerResponse.newInstance(delegate.response()); 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)); }