com.plumtree.portaluiinfrastructure.friendlyurl
Class FriendlyURLParserManager

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.friendlyurl.FriendlyURLParserManager
All Implemented Interfaces:
IFriendlyURLParserManager

public class FriendlyURLParserManager
extends java.lang.Object
implements IFriendlyURLParserManager


Field Summary
protected  XPHashtable m_htKeyToClassIdLookup
           
 
Method Summary
 java.lang.String FindKeywordForType(java.lang.String typeId)
          Looks up the friendly url keyword for the specified type.
static IFriendlyURLParserManager getInstance()
           
 IFriendlyURLParser GetParser(XPStringTokenizer stURLTokens)
          Returns an IFriendlyURLParser based on the URL path given.
 void SetKeyToClassIdLookupTable(XPHashtable htKeyToClassIdLookup)
          Stores the map of keywords to class Ids.
static void setManagerTestInstance(IFriendlyURLParserManager testManager)
          Unit tests should use this method to overwrite/teardown existing manager singleton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_htKeyToClassIdLookup

protected XPHashtable m_htKeyToClassIdLookup
Method Detail

getInstance

public static IFriendlyURLParserManager getInstance()
Returns:
The singleton manager for retrieving parsers.

SetKeyToClassIdLookupTable

public void SetKeyToClassIdLookupTable(XPHashtable htKeyToClassIdLookup)
Description copied from interface: IFriendlyURLParserManager
Stores the map of keywords to class Ids.

Specified by:
SetKeyToClassIdLookupTable in interface IFriendlyURLParserManager
Parameters:
htKeyToClassIdLookup - Map of keywords to class ids taken from FriendlyURLS.xml

GetParser

public IFriendlyURLParser GetParser(XPStringTokenizer stURLTokens)
Description copied from interface: IFriendlyURLParserManager
Returns an IFriendlyURLParser based on the URL path given.

Specified by:
GetParser in interface IFriendlyURLParserManager
Parameters:
stURLTokens - URL path
Returns:

FindKeywordForType

public java.lang.String FindKeywordForType(java.lang.String typeId)
Description copied from interface: IFriendlyURLParserManager
Looks up the friendly url keyword for the specified type.

Specified by:
FindKeywordForType in interface IFriendlyURLParserManager
Parameters:
typeId - Class id or type id
Returns:

setManagerTestInstance

public static void setManagerTestInstance(IFriendlyURLParserManager testManager)
Unit tests should use this method to overwrite/teardown existing manager singleton. DO NOT USE for production code.




Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.