Package | Description |
---|---|
io.vertx.ext.web | |
io.vertx.ext.web.handler | |
io.vertx.ext.web.handler.sockjs |
Modifier and Type | Method and Description |
---|---|
RoutingContext |
RoutingContext.addCookie(io.vertx.core.http.Cookie cookie)
Add a cookie.
|
default RoutingContext |
RoutingContext.attachment(String filename)
Set Content-Disposition get to "attachment" with optional
filename mime type. |
default RoutingContext |
RoutingContext.end(io.vertx.core.buffer.Buffer buffer,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
See
end(Buffer) |
default RoutingContext |
RoutingContext.end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
See
end() |
default RoutingContext |
RoutingContext.end(String chunk,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
See
end(String) |
default RoutingContext |
RoutingContext.etag(String etag)
Set the ETag of a response.
|
default RoutingContext |
RoutingContext.json(Object json,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
See
json(Object) . |
default RoutingContext |
RoutingContext.lastModified(Instant instant)
Set the Last-Modified date using a Instant.
|
default RoutingContext |
RoutingContext.lastModified(String instant)
Set the Last-Modified date using a String.
|
RoutingContext |
RoutingContext.put(String key,
Object obj)
Put some arbitrary data in the context.
|
default RoutingContext |
RoutingContext.redirect(String url,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
See
redirect(String) . |
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.
|
default <T> Route |
Route.respond(Function<RoutingContext,io.vertx.core.Future<T>> function)
Append a function request handler to the route handlers list.
|
Modifier and Type | Method and Description |
---|---|
default String |
AuthenticationHandler.authenticateHeader(RoutingContext context)
Returns
|
default io.vertx.core.Future<Void> |
SessionHandler.flush(RoutingContext ctx)
Promisified flush.
|
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.
|
default io.vertx.core.Future<io.vertx.ext.auth.authentication.Credentials> |
AuthenticationHandler.parseCredentials(RoutingContext context) |
void |
AuthenticationHandler.parseCredentials(RoutingContext context,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.authentication.Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
default void |
AuthenticationHandler.postAuthentication(RoutingContext ctx)
This method is called to perform any post authentication tasks, such as redirects.
|
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.
|
AuthorizationHandler |
AuthorizationHandler.variableConsumer(BiConsumer<RoutingContext,io.vertx.ext.auth.authorization.AuthorizationContext> handler)
Provide a simple handler to extract needed variables.
|
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.
|
Copyright © 2020 Eclipse. All rights reserved.