|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.view.navigation.AbstractUrlGenerator
public abstract class AbstractUrlGenerator
The basics of a UrlGenerator. Extend this class to create your own UrlGenerator. This ensures that configuration contracts are upheld. The term url component is used to denote a part of a URL, be it a part of the path or a parameter.
| Constructor Summary | |
|---|---|
AbstractUrlGenerator(DataModel dataModel,
NavigationConfig.Navigation navigation,
NavigationState state)
Overriding classes must have just one constructor with a signature matching this constructor. |
|
| Method Summary | |
|---|---|
protected static String |
enc(String str)
|
protected DataModel |
getDataModel()
Returns the data model. |
protected NavigationState |
getNavigationState()
Returns the navigation state. |
protected String |
getPrefix()
Returns the static URL prefix. |
protected Set<String> |
getUrlComponentNames(NavigationConfig.Nav nav,
Set<String> extraParameters,
String newValue)
All URL components that should be persistent when navigating the given navigator. |
protected String |
getUrlComponentValue(NavigationConfig.Nav nav,
String componentName,
Map<String,String> extraParameters)
The value for the given URL component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface no.sesat.search.view.navigation.UrlGenerator |
|---|
getURL, getURL |
| Constructor Detail |
|---|
public AbstractUrlGenerator(DataModel dataModel,
NavigationConfig.Navigation navigation,
NavigationState state)
dataModel - The datamodel.navigation - the navigator set to generate URLs for.state - the current navigation set.| Method Detail |
|---|
protected final NavigationState getNavigationState()
protected String getPrefix()
NavigationConfig.Navigation.getPrefix()
protected final Set<String> getUrlComponentNames(NavigationConfig.Nav nav,
Set<String> extraParameters,
String newValue)
nav - the navigator.extraParameters - any extra parameters that should go into the URL.newValue -
protected String getUrlComponentValue(NavigationConfig.Nav nav,
String componentName,
Map<String,String> extraParameters)
nav - the navigatorcomponentName - the name of the url component.extraParameters -
protected final DataModel getDataModel()
protected static String enc(String str)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||