no.sesat.search.view.navigation
Class NewsCaseUrlGenerator
java.lang.Object
no.sesat.search.view.navigation.AbstractUrlGenerator
no.sesat.search.view.navigation.BasicUrlGenerator
no.sesat.search.view.navigation.NewsCaseUrlGenerator
- All Implemented Interfaces:
- UrlGenerator
public final class NewsCaseUrlGenerator
- extends BasicUrlGenerator
A UrlGenerator for the news aggregator. Generates URL on the format /search/nyheter/person/Al+Gore.
- Version:
- $Id: NewsCaseUrlGenerator.java 6596 2008-05-10 10:05:48Z ssmiweve $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewsCaseUrlGenerator
public NewsCaseUrlGenerator(DataModel dataModel,
NavigationConfig.Navigation navigation,
NavigationState state)
appendParameterComponent
protected void appendParameterComponent(String parameter,
String encodedValue)
- Description copied from class:
BasicUrlGenerator
- Appends the component and its encodedValue as a parameter component. This implementetion adds
component=encodedValue& if the encodedValue isn't empty.
- Overrides:
appendParameterComponent in class BasicUrlGenerator
- Parameters:
parameter - the component.encodedValue - the encodedValue of the component.
getPathComponents
protected List<String> getPathComponents(NavigationConfig.Nav nav)
- Description copied from class:
BasicUrlGenerator
- Returns a list of components which are supposed to be generated as path components. This default implemementation
returns the empty set (which means that all components are generated as parameter components by default)
Override this method to get some of your navigators components generated as path components.
- Overrides:
getPathComponents in class BasicUrlGenerator
- Parameters:
nav - the nav.
- Returns:
- List of path components.
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.