Package org.javlo.navigation
Class AbstractURLFactory
- java.lang.Object
-
- org.javlo.navigation.AbstractURLFactory
-
- All Implemented Interfaces:
IURLFactory
- Direct Known Subclasses:
DefaultLanguageTitleURLCreator,LabelAndSectionURLCreator,NameURLCreator,PageIDURLFactory,TitleAndSectionURLCreator,TitleURLCreator
public abstract class AbstractURLFactory extends Object implements IURLFactory
-
-
Constructor Summary
Constructors Constructor Description AbstractURLFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddAndCheckExistURL(MenuElement page, String url)check if url allready exist, and add in the set if not.protected StringcleanString(String text)StringcreateURLKey(String url)transform url to a unic string represent information (sp. : without extension).StringgetFormat(ContentContext ctx, String url)get the format of url (html, png, pdf...)protected static StringstaticCleanString(String text)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javlo.navigation.IURLFactory
createURL
-
-
-
-
Method Detail
-
getFormat
public String getFormat(ContentContext ctx, String url)
Description copied from interface:IURLFactoryget the format of url (html, png, pdf...)- Specified by:
getFormatin interfaceIURLFactoryurl- a url- Returns:
- a content format (html, png, pdf...)
-
createURLKey
public String createURLKey(String url)
Description copied from interface:IURLFactorytransform url to a unic string represent information (sp. : without extension).- Specified by:
createURLKeyin interfaceIURLFactory- Returns:
-
addAndCheckExistURL
protected boolean addAndCheckExistURL(MenuElement page, String url)
check if url allready exist, and add in the set if not.- Parameters:
url-- Returns:
- true if url allready exist on other page, false otherwise
-
-