Package ch.autumo.beetroot.routing
Class BeetRootDefaultRouter
java.lang.Object
ch.autumo.beetroot.routing.BeetRootDefaultRouter
- All Implemented Interfaces:
Router
Default router.
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLog.
-
-
Constructor Details
-
BeetRootDefaultRouter
public BeetRootDefaultRouter()
-
-
Method Details
-
getNotImplementedHandler
Get not implemented handler class. return not implemented handler class- Specified by:
getNotImplementedHandlerin interfaceRouter- Returns:
- 'not-implemented' handler class
-
getNotFoundHandler
Get not found handler class. return not found handler class- Specified by:
getNotFoundHandlerin interfaceRouter- Returns:
- 'not-found' handler class
-
getDefaultRoutes
Return the default routes. Default routes are the routes for the first page that should be shown, if someone enters URLs suc as '/' or '/index.html', etc. They should have have priority less than the default priority 100.- Specified by:
getDefaultRoutesin interfaceRouter- Returns:
- default routes.
-
getRoutes
Get web application routes. -
merge
Merge routes! Use this method within your custom router and the overwrittengetRoutes()method to merge the base routes in this class with your additional custom routes, otherwise the base routes are not accessible!- Parameters:
baseRoutes- base routescustomRoutes- custom routes- Returns:
- merged routes
-
merge
Merge routes! Use this method within your custom router and the overwrittengetRoutes()method to merge the base routes in this class with your additional custom routes, otherwise the base routes are not accessible!- Parameters:
baseRoutes- base routescustomRoutes- custom routes- Returns:
- merged routes
-