no.sesat.search.view.navigation
Class TreeUrlGenerator

java.lang.Object
  extended by no.sesat.search.view.navigation.AbstractUrlGenerator
      extended by no.sesat.search.view.navigation.TreeUrlGenerator
All Implemented Interfaces:
UrlGenerator

public class TreeUrlGenerator
extends AbstractUrlGenerator

This class is a url generator for the TreeNavigationController class.


Constructor Summary
TreeUrlGenerator(DataModel dataModel, NavigationConfig.Navigation navigation, NavigationState state)
           
 
Method Summary
static String generateUrlParameter(String name, String value)
          Generate a string containing the name and the value as a correct encoded url part.
 String getURL(String value, NavigationConfig.Nav nav)
          Returns the url for the given navigator when navigated on the given value.
 String getURL(String value, NavigationConfig.Nav nav, Map<String,String> extraParameters)
          Generate url for the given TreeNavigationConfiguration.
 
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

TreeUrlGenerator

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

getURL

public String getURL(String value,
                     NavigationConfig.Nav nav)
Description copied from interface: UrlGenerator
Returns the url for the given navigator when navigated on the given value.

Parameters:
value - the value to navigate to.
nav - the navigator to navigate.
Returns:
the URL.

getURL

public String getURL(String value,
                     NavigationConfig.Nav nav,
                     Map<String,String> extraParameters)
Generate url for the given TreeNavigationConfiguration.

Parameters:
value -
nav -
extraParameters -
Returns:
The url

generateUrlParameter

public static String generateUrlParameter(String name,
                                          String value)
Generate a string containing the name and the value as a correct encoded url part.

Parameters:
name -
value -
Returns:


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.