Package org.javlo.navigation
Class NoExtURLPathTitleCreator
- java.lang.Object
-
- org.javlo.navigation.NoExtURLCreator
-
- org.javlo.navigation.NoExtURLPathTitleCreator
-
- All Implemented Interfaces:
IURLFactory
public class NoExtURLPathTitleCreator extends NoExtURLCreator
-
-
Constructor Summary
Constructors Constructor Description NoExtURLPathTitleCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateURL(ContentContext ctx, MenuElement currentPage)create url to a page.StringcreateURLKey(String url)transform url to a unic string represent information (sp. : without extension).protected booleanfromDefaultLanguage()StringgetFormat(ContentContext ctx, String url)get the format of url (html, png, pdf...)-
Methods inherited from class org.javlo.navigation.NoExtURLCreator
cleanString, main
-
-
-
-
Method Detail
-
fromDefaultLanguage
protected boolean fromDefaultLanguage()
- Overrides:
fromDefaultLanguagein classNoExtURLCreator
-
createURL
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
Description copied from interface:IURLFactorycreate url to a page.- Specified by:
createURLin interfaceIURLFactory- Overrides:
createURLin classNoExtURLCreator- Parameters:
ctx- content contextcurrentPage- page in content- Returns:
- a URL
- Throws:
Exception
-
getFormat
public String getFormat(ContentContext ctx, String url)
Description copied from interface:IURLFactoryget the format of url (html, png, pdf...)- Specified by:
getFormatin interfaceIURLFactory- Overrides:
getFormatin classNoExtURLCreatorurl- 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- Overrides:
createURLKeyin classNoExtURLCreator- Returns:
-
-