Package org.javlo.navigation
Class NoExtURLPathTitleCreatorOneLevel
- java.lang.Object
-
- org.javlo.navigation.NoExtURLCreator
-
- org.javlo.navigation.NoExtURLPathTitleCreatorOneLevel
-
- All Implemented Interfaces:
IURLFactory
public class NoExtURLPathTitleCreatorOneLevel extends NoExtURLCreator
-
-
Constructor Summary
Constructors Constructor Description NoExtURLPathTitleCreatorOneLevel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createURL(ContentContext ctx, MenuElement currentPage)
create url to a page.String
createURLKey(String url)
transform url to a unic string represent information (sp. : without extension).protected boolean
fromDefaultLanguage()
String
getFormat(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:
fromDefaultLanguage
in classNoExtURLCreator
-
createURL
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
Description copied from interface:IURLFactory
create url to a page.- Specified by:
createURL
in interfaceIURLFactory
- Overrides:
createURL
in 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:IURLFactory
get the format of url (html, png, pdf...)- Specified by:
getFormat
in interfaceIURLFactory
- Overrides:
getFormat
in classNoExtURLCreator
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
- Overrides:
createURLKey
in classNoExtURLCreator
- Returns:
-
-