Class RouterServiceImpl
- java.lang.Object
-
- co.mastermindcms.framework.services.RouterServiceImpl
-
- All Implemented Interfaces:
RouterService
,java.io.Serializable
@Service public class RouterServiceImpl extends java.lang.Object implements RouterService
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMapper
mapper
private WebSiteSettingsRepository
webSiteSettingsRepository
-
Constructor Summary
Constructors Constructor Description RouterServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLoginPage(java.lang.String site)
java.lang.String
getPage404(java.lang.String site)
SPARoute
routeAsSinglePageApplication(java.lang.String site, java.lang.String requestURI)
Finds a single page application route based on the site and request URI provided.
-
-
-
Field Detail
-
webSiteSettingsRepository
@Autowired private WebSiteSettingsRepository webSiteSettingsRepository
-
mapper
private final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Method Detail
-
routeAsSinglePageApplication
public SPARoute routeAsSinglePageApplication(java.lang.String site, java.lang.String requestURI)
Description copied from interface:RouterService
Finds a single page application route based on the site and request URI provided.- Specified by:
routeAsSinglePageApplication
in interfaceRouterService
- Parameters:
site
- the ID of the site to search for route settingsrequestURI
- the URI of the request to match against the route patterns- Returns:
- the SPARoute object corresponding to the matched route, or null if no match is found
-
getLoginPage
public java.lang.String getLoginPage(java.lang.String site)
- Specified by:
getLoginPage
in interfaceRouterService
-
getPage404
public java.lang.String getPage404(java.lang.String site)
- Specified by:
getPage404
in interfaceRouterService
-
-