Package org.javlo.navigation
Class TitleAndSectionURLCreator
- java.lang.Object
-
- org.javlo.navigation.AbstractURLFactory
-
- org.javlo.navigation.TitleAndSectionURLCreator
-
- All Implemented Interfaces:
IURLFactory
- Direct Known Subclasses:
TitleAndSectionURLCreatorTransliteral
public class TitleAndSectionURLCreator extends AbstractURLFactory
create url based on the title of the page.- Author:
- Patrick Vandermaesen
-
-
Constructor Summary
Constructors Constructor Description TitleAndSectionURLCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createURL(ContentContext ctx, MenuElement currentPage)
create url to a page.protected String
createURLWithoutExt(ContentContext ctx, MenuElement currentPage)
protected boolean
isTransliteration()
-
Methods inherited from class org.javlo.navigation.AbstractURLFactory
addAndCheckExistURL, cleanString, createURLKey, getFormat, staticCleanString
-
-
-
-
Method Detail
-
isTransliteration
protected boolean isTransliteration()
-
createURLWithoutExt
protected String createURLWithoutExt(ContentContext ctx, MenuElement currentPage) throws Exception
- Throws:
Exception
-
createURL
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
Description copied from interface:IURLFactory
create url to a page.- Parameters:
ctx
- content contextcurrentPage
- page in content- Returns:
- a URL
- Throws:
Exception
-
-