@Test public void testIs() throws Exception { router.route().handler(event -> { assertTrue(event.is("json")); event.response().end(); }); testRequest(HttpMethod.POST, "/", req -> { req.setChunked(true); req.putHeader("Content-Type", "application/json"); req.write(Buffer.buffer("{ \"foo\": \"bar\" }")); }, HttpResponseStatus.OK.code(), HttpResponseStatus.OK.reasonPhrase(), null); }
@Override public HttpServerResponse response() { return request.response(); }
RoutingContextImpl extends RoutingContextImplBase { @Override public HttpServerResponse response() { return request.response(); } }
RoutingContextImpl extends RoutingContextImplBase { @Override public HttpServerResponse response() { return request.response(); } RoutingContextImpl(String mountPoint, RouterImpl router, HttpServerRequest request, Set<RouteImpl> routes); }
RoutingContextImpl extends RoutingContextImplBase { @Override public HttpServerResponse response() { return request.response(); } RoutingContextImpl(String mountPoint, RouterImpl router, HttpServerRequest request, Set<RouteImpl> routes); @Override HttpServerRequest request(); @Override HttpServerResponse response(); @Override Throwable failure(); @Override int statusCode(); @Override boolean failed(); @Override void next(); @Override void fail(int statusCode); @Override void fail(Throwable t); @Override void fail(int statusCode, Throwable throwable); @Override RoutingContext put(String key, Object obj); @Override Vertx vertx(); @Override @SuppressWarnings("unchecked") T get(String key); @Override @SuppressWarnings("unchecked") T remove(String key); @Override Map<String, Object> data(); @Override String normalizedPath(); @Override Cookie getCookie(String name); @Override RoutingContext addCookie(io.vertx.core.http.Cookie cookie); @Override Cookie removeCookie(String name, boolean invalidate); @Override int cookieCount(); @Override Map<String, Cookie> cookieMap(); @Override String getBodyAsString(); @Override String getBodyAsString(String encoding); @Override JsonObject getBodyAsJson(int maxAllowedLength); @Override JsonArray getBodyAsJsonArray(int maxAllowedLength); @Override Buffer getBody(); @Override void setBody(Buffer body); @Override Set<FileUpload> fileUploads(); @Override void setSession(Session session); @Override Session session(); @Override boolean isSessionAccessed(); @Override User user(); @Override void setUser(User user); @Override void clearUser(); @Override String getAcceptableContentType(); @Override void setAcceptableContentType(String contentType); @Override ParsableHeaderValuesContainer parsedHeaders(); @Override int addHeadersEndHandler(Handler<Void> handler); @Override boolean removeHeadersEndHandler(int handlerID); @Override int addBodyEndHandler(Handler<Void> handler); @Override boolean removeBodyEndHandler(int handlerID); @Override int addEndHandler(Handler<AsyncResult<Void>> handler); @Override boolean removeEndHandler(int handlerID); @Override void reroute(HttpMethod method, String path); @Override Map<String, String> pathParams(); @Override @Nullable String pathParam(String name); @Override MultiMap queryParams(); @Override @Nullable List<String> queryParam(String query); }
RoutingContextImpl extends RoutingContextImplBase { @Override public HttpServerResponse response() { return request.response(); } RoutingContextImpl(String mountPoint, RouterImpl router, HttpServerRequest request, Set<RouteImpl> routes); @Override HttpServerRequest request(); @Override HttpServerResponse response(); @Override Throwable failure(); @Override int statusCode(); @Override boolean failed(); @Override void next(); @Override void fail(int statusCode); @Override void fail(Throwable t); @Override void fail(int statusCode, Throwable throwable); @Override RoutingContext put(String key, Object obj); @Override Vertx vertx(); @Override @SuppressWarnings("unchecked") T get(String key); @Override @SuppressWarnings("unchecked") T remove(String key); @Override Map<String, Object> data(); @Override String normalizedPath(); @Override Cookie getCookie(String name); @Override RoutingContext addCookie(io.vertx.core.http.Cookie cookie); @Override Cookie removeCookie(String name, boolean invalidate); @Override int cookieCount(); @Override Map<String, Cookie> cookieMap(); @Override String getBodyAsString(); @Override String getBodyAsString(String encoding); @Override JsonObject getBodyAsJson(int maxAllowedLength); @Override JsonArray getBodyAsJsonArray(int maxAllowedLength); @Override Buffer getBody(); @Override void setBody(Buffer body); @Override Set<FileUpload> fileUploads(); @Override void setSession(Session session); @Override Session session(); @Override boolean isSessionAccessed(); @Override User user(); @Override void setUser(User user); @Override void clearUser(); @Override String getAcceptableContentType(); @Override void setAcceptableContentType(String contentType); @Override ParsableHeaderValuesContainer parsedHeaders(); @Override int addHeadersEndHandler(Handler<Void> handler); @Override boolean removeHeadersEndHandler(int handlerID); @Override int addBodyEndHandler(Handler<Void> handler); @Override boolean removeBodyEndHandler(int handlerID); @Override int addEndHandler(Handler<AsyncResult<Void>> handler); @Override boolean removeEndHandler(int handlerID); @Override void reroute(HttpMethod method, String path); @Override Map<String, String> pathParams(); @Override @Nullable String pathParam(String name); @Override MultiMap queryParams(); @Override @Nullable List<String> queryParam(String query);  }