Class UserPortalRouter


  • @ApplicationScoped
    @Named
    public class UserPortalRouter
    extends Object
    Handles URL routing for user portal pages.
    Since:
    8.2.0
    • Constructor Detail

      • UserPortalRouter

        public UserPortalRouter()
    • Method Detail

      • externalUrlWithContext

        public <C extends IRoutingContextString externalUrlWithContext​(IUserPortalRoute<C> route,
                                                                         C routingContext,
                                                                         javax.servlet.http.HttpServletRequest request)
      • facesRedirectTo

        public <C extends IRoutingContext> void facesRedirectTo​(javax.faces.context.FacesContext facesContext,
                                                                IUserPortalRoute<C> route,
                                                                C routingContext)
        Redirects an active Faces request to the given user portal view.
        Parameters:
        facesContext - The currently active Faces context.
        route - The route to redirect to.
        routingContext - The routing context to use for the redirect.
      • facesRedirectToGenericNotFound

        public void facesRedirectToGenericNotFound​(javax.faces.context.FacesContext facesContext)
        Redirects an active Faces request to the not found view.
        Parameters:
        facesContext - The currently active Faces context.
      • facesRedirectToGenericError

        public void facesRedirectToGenericError​(javax.faces.context.FacesContext facesContext)
        Redirects an active Faces request to the error view.
        Parameters:
        facesContext - The currently active Faces context.
      • isUserPortalRequest

        public boolean isUserPortalRequest​(javax.servlet.http.HttpServletRequest request)
      • routeByRequest

        public IUserPortalRoute<?> routeByRequest​(javax.servlet.http.HttpServletRequest request)