Package | Description |
---|---|
io.vertx.ext.web | |
io.vertx.ext.web.handler | |
io.vertx.ext.web.handler.sockjs | |
io.vertx.ext.web.templ |
Modifier and Type | Method and Description |
---|---|
RoutingContext |
RoutingContext.addCookie(io.vertx.core.http.Cookie cookie)
Add a cookie.
|
RoutingContext |
RoutingContext.addCookie(Cookie cookie)
Deprecated.
instead use
addCookie(io.vertx.core.http.Cookie) |
RoutingContext |
RoutingContext.put(String key,
Object obj)
Put some arbitrary data in the context.
|
Modifier and Type | Method and Description |
---|---|
void |
Router.handleContext(RoutingContext context)
Used to route a context to the router.
|
void |
Router.handleFailure(RoutingContext context)
Used to route a failure to the router.
|
Modifier and Type | Method and Description |
---|---|
Route |
Route.blockingHandler(io.vertx.core.Handler<RoutingContext> requestHandler)
Like
Route.blockingHandler(Handler, boolean) called with ordered = true |
Route |
Route.blockingHandler(io.vertx.core.Handler<RoutingContext> requestHandler,
boolean ordered)
Specify a blocking request handler for the route.
|
Router |
Router.errorHandler(int statusCode,
io.vertx.core.Handler<RoutingContext> errorHandler)
Specify an handler to handle an error for a particular status code.
|
Route |
Route.failureHandler(io.vertx.core.Handler<RoutingContext> failureHandler)
Append a failure handler to the route failure handlers list.
|
Route |
Route.handler(io.vertx.core.Handler<RoutingContext> requestHandler)
Append a request handler to the route handlers list.
|
Modifier and Type | Method and Description |
---|---|
SessionHandler |
SessionHandler.flush(RoutingContext ctx,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
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.
|
void |
AuthHandler.parseCredentials(RoutingContext context,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> handler)
Parses the credentials from the request into a JsonObject.
|
Modifier and Type | Method and Description |
---|---|
MultiTenantHandler |
MultiTenantHandler.addDefaultHandler(io.vertx.core.Handler<RoutingContext> handler)
Add a default handler for the case when no tenant was matched.
|
MultiTenantHandler |
MultiTenantHandler.addTenantHandler(String tenant,
io.vertx.core.Handler<RoutingContext> handler)
Add a handler for a given tenant to this handler.
|
static MultiTenantHandler |
MultiTenantHandler.create(Function<RoutingContext,String> tenantExtractor)
Create a MultiTenant handler using a custom tenant extraction function.
|
static MultiTenantHandler |
MultiTenantHandler.create(Function<RoutingContext,String> tenantExtractor,
String contextKey)
Create a MultiTenant handler using a custom tenant extraction function.
|
static VirtualHostHandler |
VirtualHostHandler.create(String hostname,
io.vertx.core.Handler<RoutingContext> handler)
Create a handler
|
Modifier and Type | Method and Description |
---|---|
void |
SockJSHandler.handle(RoutingContext routingContext)
Deprecated.
mount the router as a sub-router instead. This method will not properly handle errors.
|
Modifier and Type | Method and Description |
---|---|
default void |
TemplateEngine.render(RoutingContext context,
String templateFileName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
Deprecated.
|
default void |
TemplateEngine.render(RoutingContext context,
String templateDirectory,
String templateFileName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>> handler)
Deprecated.
|
Copyright © 2020 Eclipse. All rights reserved.