/** * Create a term server for the HTTP protocol, using an existing router. * * @param vertx the vertx instance * @param router the router * @return the term server */ static TermServer createHttpTermServer(Vertx vertx, Router router) { return createHttpTermServer(vertx, router, new HttpTermOptions()); }
/** * Create a term server for the HTTP protocol. * * @param vertx the vertx instance * @return the term server */ static TermServer createHttpTermServer(Vertx vertx) { return createHttpTermServer(vertx, new HttpTermOptions()); }
@Override protected TermServer createServer(TestContext context, HttpTermOptions options) { return TermServer.createHttpTermServer(vertx, options); } }
/** * Create a term server for the HTTP protocol. * @param vertx the vertx instance * @param options the term options * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx, HttpTermOptions options) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate(), options)); return ret; }
/** * Create a term server for the HTTP protocol. * @param vertx the vertx instance * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate())); return ret; }
/** * Create a term server for the HTTP protocol. * @param vertx the vertx instance * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate())); return ret; }
/** * Create a term server for the HTTP protocol. * @param vertx the vertx instance * @param options the term options * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx, HttpTermOptions options) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate(), options)); return ret; }
public static io.vertx.ext.shell.term.TermServer createHttpTermServer(io.vertx.ext.shell.term.TermServer j_receiver, io.vertx.core.Vertx vertx, java.util.Map<String, Object> options) { return io.vertx.core.impl.ConversionHelper.fromObject(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx, options != null ? new io.vertx.ext.shell.term.HttpTermOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null)); } public static io.vertx.ext.shell.term.TermServer createHttpTermServer(io.vertx.ext.shell.term.TermServer j_receiver, io.vertx.core.Vertx vertx, io.vertx.ext.web.Router router, java.util.Map<String, Object> options) {
public static io.vertx.ext.shell.term.TermServer createHttpTermServer(io.vertx.ext.shell.term.TermServer j_receiver, io.vertx.core.Vertx vertx, io.vertx.ext.web.Router router, java.util.Map<String, Object> options) { return io.vertx.core.impl.ConversionHelper.fromObject(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx, router, options != null ? new io.vertx.ext.shell.term.HttpTermOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null)); } }
/** * Create a term server for the HTTP protocol, using an existing router. * @param vertx the vertx instance * @param router the router * @param options the term options * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx, io.vertx.rxjava.ext.web.Router router, HttpTermOptions options) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate(), router.getDelegate(), options)); return ret; }
/** * Create a term server for the HTTP protocol, using an existing router. * @param vertx the vertx instance * @param router the router * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx, io.vertx.rxjava.ext.web.Router router) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate(), router.getDelegate())); return ret; }
/** * Create a term server for the HTTP protocol, using an existing router. * @param vertx the vertx instance * @param router the router * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx, io.vertx.rxjava.ext.web.Router router) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate(), router.getDelegate())); return ret; }
/** * Create a term server for the HTTP protocol, using an existing router. * @param vertx the vertx instance * @param router the router * @param options the term options * @return the term server */ public static io.vertx.rxjava.ext.shell.term.TermServer createHttpTermServer(io.vertx.rxjava.core.Vertx vertx, io.vertx.rxjava.ext.web.Router router, HttpTermOptions options) { io.vertx.rxjava.ext.shell.term.TermServer ret = io.vertx.rxjava.ext.shell.term.TermServer.newInstance(io.vertx.ext.shell.term.TermServer.createHttpTermServer(vertx.getDelegate(), router.getDelegate(), options)); return ret; }
@Override protected TermServer createServer(TestContext context, HttpTermOptions options) { HttpServer httpServer = vertx.createHttpServer(new HttpServerOptions().setPort(8080)); Router router = Router.router(vertx); Router subRouter = Router.router(vertx); router.mountSubRouter("/sub", subRouter); httpServer.requestHandler(router::accept); Async async = context.async(); httpServer.listen(8080, context.asyncAssertSuccess(s -> { async.complete(); })); async.awaitSuccess(20000); return TermServer.createHttpTermServer(vertx, subRouter, options); } }