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 boolean
addAndCheckExistURL(MenuElement page, String url)
check if url allready exist, and add in the set if not.protected String
cleanString(String text)
String
createURLKey(String url)
transform url to a unic string represent information (sp. : without extension).String
getFormat(ContentContext ctx, String url)
get the format of url (html, png, pdf...)protected static String
staticCleanString(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:IURLFactory
get the format of url (html, png, pdf...)- Specified by:
getFormat
in interfaceIURLFactory
url
- a url- Returns:
- a content format (html, png, pdf...)
-
createURLKey
public String createURLKey(String url)
Description copied from interface:IURLFactory
transform url to a unic string represent information (sp. : without extension).- Specified by:
createURLKey
in 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
-
-