Initializer |
Router(Router unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
accept | shared default void accept(HttpServerRequest request) This method is used to provide a request to the router. Usually you take request from the
Parameters:
|
clear | shared default Router clear() Remove all the routes from this router |
connect | shared default Route connect() Add a route that matches any HTTP CONNECT request |
connect | shared default Route connect(String path) Add a route that matches a HTTP CONNECT request and the specified path Parameters:
|
connectWithRegex | shared default Route connectWithRegex(String regex) Add a route that matches a HTTP CONNECT request and the specified path regex Parameters:
|
delete | shared default Route delete() Add a route that matches any HTTP DELETE request |
delete | shared default Route delete(String path) Add a route that matches a HTTP DELETE request and the specified path Parameters:
|
deleteWithRegex | shared default Route deleteWithRegex(String regex) Add a route that matches a HTTP DELETE request and the specified path regex Parameters:
|
exceptionHandler | shared default Router exceptionHandler(Anything(Throwable)? exceptionHandler) Specify a handler for any unhandled exceptions on this router. The handler will be called for exceptions thrown from handlers. This does not affect the normal failure routing logic. Parameters:
|
get | shared default Route get() Add a route that matches any HTTP GET request |
get | shared default Route get(String path) Add a route that matches a HTTP GET request and the specified path Parameters:
|
getRoutes | shared default List<Route> getRoutes() @return a list of all the routes on this router |
getWithRegex | shared default Route getWithRegex(String regex) Add a route that matches a HTTP GET request and the specified path regex Parameters:
|
handleContext | shared default void handleContext(RoutingContext context) Used to route a context to the router. Used for sub-routers. You wouldn't normally call this method directly. Parameters:
|
handleFailure | shared default void handleFailure(RoutingContext context) Used to route a failure to the router. Used for sub-routers. You wouldn't normally call this method directly. Parameters:
|
head | shared default Route head() Add a route that matches any HTTP HEAD request |
head | shared default Route head(String path) Add a route that matches a HTTP HEAD request and the specified path Parameters:
|
headWithRegex | shared default Route headWithRegex(String regex) Add a route that matches a HTTP HEAD request and the specified path regex Parameters:
|
mountSubRouter | shared default Router mountSubRouter(String mountPoint, Router subRouter) Mount a sub router on this router Parameters:
|
options | shared default Route options() Add a route that matches any HTTP OPTIONS request |
options | shared default Route options(String path) Add a route that matches a HTTP OPTIONS request and the specified path Parameters:
|
optionsWithRegex | shared default Route optionsWithRegex(String regex) Add a route that matches a HTTP OPTIONS request and the specified path regex Parameters:
|
patch | shared default Route patch() Add a route that matches any HTTP PATCH request |
patch | shared default Route patch(String path) Add a route that matches a HTTP PATCH request and the specified path Parameters:
|
patchWithRegex | shared default Route patchWithRegex(String regex) Add a route that matches a HTTP PATCH request and the specified path regex Parameters:
|
post | shared default Route post() Add a route that matches any HTTP POST request |
post | shared default Route post(String path) Add a route that matches a HTTP POST request and the specified path Parameters:
|
postWithRegex | shared default Route postWithRegex(String regex) Add a route that matches a HTTP POST request and the specified path regex Parameters:
|
put | shared default Route put() Add a route that matches any HTTP PUT request |
put | shared default Route put(String path) Add a route that matches a HTTP PUT request and the specified path Parameters:
|
putWithRegex | shared default Route putWithRegex(String regex) Add a route that matches a HTTP PUT request and the specified path regex Parameters:
|
route | shared default Route route() Add a route with no matching criteria, i.e. it matches all requests or failures. |
route | shared default Route route(String path) Add a route that matches the specified path Parameters:
|
route | shared default Route route(HttpMethod method, String path) Add a route that matches the specified HTTP method and path Parameters:
|
routeWithRegex | shared default Route routeWithRegex(String regex) Add a route that matches the specified path regex Parameters:
|
routeWithRegex | shared default Route routeWithRegex(HttpMethod method, String regex) Add a route that matches the specified HTTP method and path regex Parameters:
|
trace | shared default Route trace() Add a route that matches any HTTP TRACE request |
trace | shared default Route trace(String path) Add a route that matches a HTTP TRACE request and the specified path Parameters:
|
traceWithRegex | shared default Route traceWithRegex(String regex) Add a route that matches a HTTP TRACE request and the specified path regex Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |