public interface RouteMatcher
| Modifier and Type | Method and Description |
|---|---|
RouteMatcher |
accept(io.vertx.core.http.HttpServerRequest request) |
RouteMatcher |
all(String pattern,
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
Specify a handler that will be called for all HTTP methods
|
RouteMatcher |
allWithRegEx(String regex,
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
Specify a handler that will be called for all HTTP methods
|
RouteMatcher |
matchMethod(io.vertx.core.http.HttpMethod method,
String pattern,
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
Specify a handler that will be called for a matching request
|
RouteMatcher |
matchMethodWithRegEx(io.vertx.core.http.HttpMethod method,
String pattern,
io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
Specify a handler that will be called for a matching request
|
RouteMatcher |
noMatch(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
Specify a handler that will be called when no other handlers match.
|
static RouteMatcher |
routeMatcher() |
static RouteMatcher routeMatcher()
RouteMatcher accept(io.vertx.core.http.HttpServerRequest request)
RouteMatcher matchMethod(io.vertx.core.http.HttpMethod method, String pattern, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
method - - the HTTP methodpattern - The simple patternhandler - The handler to callRouteMatcher all(String pattern, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
pattern - The simple patternhandler - The handler to callRouteMatcher matchMethodWithRegEx(io.vertx.core.http.HttpMethod method, String pattern, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
method - - the HTTP methodpattern - The simple patternhandler - The handler to callRouteMatcher allWithRegEx(String regex, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
regex - A regular expressionhandler - The handler to callRouteMatcher noMatch(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> handler)
Copyright © 2014. All Rights Reserved.