Interface HTTPServer.IRoutePrioritizer
- All Known Implementing Classes:
HTTPServer.BaseRoutePrioritizer, HTTPServer.DefaultRoutePrioritizer, HTTPServer.InsertionOrderRoutePrioritizer, HTTPServer.ProvidedPriorityRoutePrioritizer
- Enclosing class:
HTTPServer
public static interface HTTPServer.IRoutePrioritizer
Holds the registered routes and defines their processing order.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a route.Returns all routes in processing order.voidremoveRoute(String url) Removes the route with the given URI pattern.voidsetNotImplemented(Class<?> notImplemented) Sets the handler used for routes without an implementation.
-
Method Details
-
addRoute
-
removeRoute
Removes the route with the given URI pattern.- Parameters:
url- the URI pattern
-
getPrioritizedRoutes
Collection<HTTPServer.UriResource> getPrioritizedRoutes()Returns all routes in processing order.- Returns:
- the routes
-
setNotImplemented
Sets the handler used for routes without an implementation.- Parameters:
notImplemented- the handler class
-