Uses of Interface
io.vertx.ext.web.RoutingContext
-
Packages that use RoutingContext Package Description io.vertx.ext.web io.vertx.ext.web.handler io.vertx.ext.web.handler.sockjs -
-
Uses of RoutingContext in io.vertx.ext.web
Methods in io.vertx.ext.web that return RoutingContext Modifier and Type Method Description default RoutingContextRoutingContext. attachment(String filename)Set Content-Disposition get to "attachment" with optionalfilenamemime type.default RoutingContextRoutingContext. etag(String etag)Set the ETag of a response.default RoutingContextRoutingContext. lastModified(String instant)Set the Last-Modified date using a String.default RoutingContextRoutingContext. lastModified(Instant instant)Set the Last-Modified date using a Instant.RoutingContextRoutingContext. put(String key, Object obj)Put some arbitrary data in the context.RoutingContextWebServerRequest. routingContext()Methods in io.vertx.ext.web with parameters of type RoutingContext Modifier and Type Method Description voidRouter. handleContext(RoutingContext context)Used to route a context to the router.voidRouter. handleFailure(RoutingContext context)Used to route a failure to the router.Method parameters in io.vertx.ext.web with type arguments of type RoutingContext Modifier and Type Method Description RouteRoute. blockingHandler(Handler<RoutingContext> requestHandler)LikeRoute.blockingHandler(Handler, boolean)called with ordered = trueRouteRoute. blockingHandler(Handler<RoutingContext> requestHandler, boolean ordered)Specify a blocking request handler for the route.RouterRouter. errorHandler(int statusCode, Handler<RoutingContext> errorHandler)Specify an handler to handle an error for a particular status code.RouteRoute. failureHandler(Handler<RoutingContext> failureHandler)Append a failure handler to the route failure handlers list.RouteRoute. handler(Handler<RoutingContext> requestHandler)Append a request handler to the route handlers list.default <T> RouteRoute. respond(Function<RoutingContext,Future<T>> function)Append a function request handler to the route handlers list. -
Uses of RoutingContext in io.vertx.ext.web.handler
Methods in io.vertx.ext.web.handler with parameters of type RoutingContext Modifier and Type Method Description default Future<Void>SessionHandler. flush(RoutingContext ctx)Flush a context session earlier to the store, this will allow the end user to have full control on the event of a failure at the store level.Future<Void>SessionHandler. flush(RoutingContext ctx, boolean ignoreStatus)Flush a context session earlier to the store, this will allow the end user to have full control on the event of a failure at the store level.StringLoggerFormatter. format(RoutingContext routingContext, long ms)Formats and returns the log statementSessionSessionHandler. newSession(RoutingContext context)Create a new sessionFuture<Void>SessionHandler. setUser(RoutingContext context, User user)Set the user for the sessionMethod parameters in io.vertx.ext.web.handler with type arguments of type RoutingContext Modifier and Type Method Description MultiTenantHandlerMultiTenantHandler. addDefaultHandler(Handler<RoutingContext> handler)Add a default handler for the case when no tenant was matched.MultiTenantHandlerMultiTenantHandler. addTenantHandler(String tenant, Handler<RoutingContext> handler)Add a handler for a given tenant to this handler.SimpleAuthenticationHandlerSimpleAuthenticationHandler. authenticate(Function<RoutingContext,Future<User>> authenticationFunction)This function will allow you to perform authentication the way you intended to.static MultiTenantHandlerMultiTenantHandler. create(Function<RoutingContext,String> tenantExtractor)Create a MultiTenant handler using a custom tenant extraction function.static MultiTenantHandlerMultiTenantHandler. create(Function<RoutingContext,String> tenantExtractor, String contextKey)Create a MultiTenant handler using a custom tenant extraction function.AuthorizationHandlerAuthorizationHandler. variableConsumer(BiConsumer<RoutingContext,AuthorizationContext> handler)Provide a simple handler to extract needed variables. -
Uses of RoutingContext in io.vertx.ext.web.handler.sockjs
Methods in io.vertx.ext.web.handler.sockjs that return RoutingContext Modifier and Type Method Description RoutingContextSockJSSocket. routingContext()
-