@ApplicationScoped public class HistoryTokenFactory extends Object
| Constructor and Description |
|---|
HistoryTokenFactory() |
HistoryTokenFactory(URLPatternMatcher upm) |
| Modifier and Type | Method and Description |
|---|---|
HistoryToken |
createHistoryToken(String pageName,
Multimap<String,String> state)
This can be used to create a HistoryToken when navigating by page name.
|
HistoryToken |
parseURL(String url)
This can be used to generate a HistoryToken from a URL path
|
public HistoryTokenFactory()
@Inject public HistoryTokenFactory(URLPatternMatcher upm)
public HistoryToken createHistoryToken(String pageName, Multimap<String,String> state)
pageName - The name of the page. Never null.state - The map of PageState keys and values. Never null.public HistoryToken parseURL(String url)
url - The typed URL path. If the browser is pushstate-enabled, this will be the URI path,
otherwise it will be the fragment identifier.Copyright © 2020 Treblereel. All rights reserved.