Package org.javlo.navigation
Class TitleURLCreator
- java.lang.Object
-
- org.javlo.navigation.AbstractURLFactory
-
- org.javlo.navigation.TitleURLCreator
-
- All Implemented Interfaces:
IURLFactory
- Direct Known Subclasses:
RecursiveTitleURLCreator
,TitleURLCreatorNoAccent
public class TitleURLCreator extends AbstractURLFactory
create url based on the title of the page.- Author:
- Patrick Vandermaesen
-
-
Constructor Summary
Constructors Constructor Description TitleURLCreator()
-
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
isRemoveAccent()
protected boolean
isWithParent()
-
Methods inherited from class org.javlo.navigation.AbstractURLFactory
addAndCheckExistURL, cleanString, createURLKey, getFormat, staticCleanString
-
-
-
-
Method Detail
-
isWithParent
protected boolean isWithParent()
-
isRemoveAccent
protected boolean isRemoveAccent()
-
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
-
-