Class ContentRouteIndex
java.lang.Object
io.mindspice.simplypages.components.content.ContentRouteIndex
Route mapping and lookup helper for generated static content pages.
-
Method Summary
Modifier and TypeMethodDescriptiondetailRoute(String sectionKey, String slug) indexRoute(String sectionKey, int page) resolveDetail(String sectionKey, String slug) resolveIndex(String sectionKey, int page) resolveRequest(String requestPath, String pageParamValue) Resolves a request using path + page query value, where detail routes take precedence.resolveRoute(String route) Resolves a full route value (`/blogs?
-
Method Details
-
sectionKeys
-
indexRoute
-
detailRoute
-
resolveIndex
-
resolveDetail
-
resolveRequest
Resolves a request using path + page query value, where detail routes take precedence. A matching detail also wins when a page query is supplied, masking an index at that path and its pagination.StaticContentSite.generate()reports generated detail/index collisions as nonfatalwarnings;resolveIndex(String, int)still retrieves the index directly. -
resolveRoute
-
indexPagesByRoute
-
detailPagesByRoute
-