/** * This can be used to create a HistoryToken when navigating by page name. * * @param pageName * The name of the page. Never null. * @param state * The map of {@link PageState} keys and values. Never null. * @return A HistoryToken with the parsed URL matching information. */ public HistoryToken createHistoryToken(String pageName, Multimap<String, String> state) { URLPattern pattern = patternMatcher.getURLPattern(pageName); return new HistoryToken(pageName, ImmutableMultimap.copyOf(state), pattern); }
/** * This can be used to create a HistoryToken when navigating by page name. * * @param pageName * The name of the page. Never null. * @param state * The map of {@link PageState} keys and values. Never null. * @return A HistoryToken with the parsed URL matching information. */ public HistoryToken createHistoryToken(String pageName, Multimap<String, String> state) { URLPattern pattern = patternMatcher.getURLPattern(pageName); return new HistoryToken(pageName, ImmutableMultimap.copyOf(state), pattern); }
return new HistoryToken(pageName, ImmutableMultimap.copyOf(state), getURLPattern(pageName));
return new HistoryToken(pageName, ImmutableMultimap.copyOf(state), getURLPattern(pageName));