no.sesat.search.view.navigation
Class NewsCaseUrlGenerator

java.lang.Object
  extended by no.sesat.search.view.navigation.AbstractUrlGenerator
      extended by no.sesat.search.view.navigation.BasicUrlGenerator
          extended by 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 $

Constructor Summary
NewsCaseUrlGenerator(DataModel dataModel, NavigationConfig.Navigation navigation, NavigationState state)
           
 
Method Summary
protected  void appendParameterComponent(String parameter, String encodedValue)
          Appends the component and its encodedValue as a parameter component.
protected  List<String> getPathComponents(NavigationConfig.Nav nav)
          Returns a list of components which are supposed to be generated as path components.
 
Methods inherited from class no.sesat.search.view.navigation.BasicUrlGenerator
appendPathComponent, getParameterComponents, getParameterValue, getURL, getURL, getUrlBuilder
 
Methods inherited from class no.sesat.search.view.navigation.AbstractUrlGenerator
enc, getDataModel, getNavigationState, getPrefix, getUrlComponentNames, getUrlComponentValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsCaseUrlGenerator

public NewsCaseUrlGenerator(DataModel dataModel,
                            NavigationConfig.Navigation navigation,
                            NavigationState state)
Method Detail

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.