Interface Filter
-
- All Known Implementing Classes:
Filters.SimpleFilter
public interface FilterRepresents a Filter, i.e. a route called on every HTTP request. The priority attribute allows sorting the filters. Highest priority are called first.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>getHandler()The handler called on HTTP request.intgetPriority()
-
-
-
Method Detail
-
getHandler
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> getHandler()
The handler called on HTTP request. It's important that the handler callRoutingContext.next()to invoke the next filter or the user routes.- Returns:
- the handler
-
getPriority
int getPriority()
- Returns:
- the priority of the filter.
-
-