Package com.onec.ui

Class PageResolver

java.lang.Object
com.onec.ui.PageResolver

public class PageResolver extends Object
Resolves an authored Page for a route, scoped to the active profile and the client's Viewport: the most specific match wins — a page for this (profile, viewport) beats one for the profile alone, which beats the universal default; else none (the caller falls back). The page-level peer of UiViewResolver.
  • Constructor Details

    • PageResolver

      public PageResolver(List<Page> pages)
  • Method Details

    • resolve

      public Page resolve(String route, String profileId, Viewport viewport)
      The page for this route under this profile and viewport, or null.