Class BeetRootDefaultRouter
java.lang.Object
ch.autumo.beetroot.routing.BeetRootDefaultRouter
- All Implemented Interfaces:
Router
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the default routes.Class<?> Get not found handler class.Class<?> Get not implemented handler class.Get web application routes.protected static Route[]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!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!
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGLogger.
-
-
Constructor Details
-
BeetRootDefaultRouter
public BeetRootDefaultRouter()Default constructor.
-
-
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
-
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
-