@ApplicationScoped public class HistoryTokenFactory extends Object
Constructor and Description |
---|
HistoryTokenFactory(URLPatternMatcher upm) |
Modifier and Type | Method and Description |
---|---|
HistoryToken |
createHistoryToken(String pageName,
com.google.common.collect.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
|
@Inject public HistoryTokenFactory(URLPatternMatcher upm)
public HistoryToken createHistoryToken(String pageName, com.google.common.collect.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 © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.