Package org.javlo.navigation
Interface IURLFactory
-
- All Known Implementing Classes:
AbstractURLFactory
,DefaultLanguageTitleURLCreator
,LabelAndSectionURLCreator
,LabelAndSectionURLCreatorNoExt
,LabelAndSectionURLCreatorNoExtWidthId
,LabelAndSubSectionURLCreator
,LabelAndSubSubSectionURLCreator
,NameURLCreator
,NoExtURLCreator
,NoExtURLDefaultLanguageCreator
,NoExtURLPathTitleCreator
,NoExtURLPathTitleCreatorOneLevel
,NoURLFactory
,PageIDURLFactory
,RecursiveTitleURLCreator
,TitleAndSectionURLCreator
,TitleAndSectionURLCreatorTransliteral
,TitleURLCreator
,TitleURLCreatorNoAccent
public interface IURLFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
createURL(ContentContext ctx, MenuElement page)
create url to a page.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...)
-
-
-
Method Detail
-
createURLKey
String createURLKey(String url)
transform url to a unic string represent information (sp. : without extension).- Parameters:
url
-- Returns:
-
createURL
String createURL(ContentContext ctx, MenuElement page) throws Exception
create url to a page.- Parameters:
ctx
- content contextpage
- page in content- Returns:
- a URL
- Throws:
Exception
-
getFormat
String getFormat(ContentContext ctx, String url)
get the format of url (html, png, pdf...)- Parameters:
url
- a url- Returns:
- a content format (html, png, pdf...)
-
-