public class NoExtURLPathTitleCreator extends NoExtURLCreator
Constructor and Description |
---|
NoExtURLPathTitleCreator() |
Modifier and Type | Method and 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...)
|
cleanString, main
protected boolean fromDefaultLanguage()
fromDefaultLanguage
in class NoExtURLCreator
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
IURLFactory
createURL
in interface IURLFactory
createURL
in class NoExtURLCreator
ctx
- content contextcurrentPage
- page in contentException
public String getFormat(ContentContext ctx, String url)
IURLFactory
getFormat
in interface IURLFactory
getFormat
in class NoExtURLCreator
url
- a urlpublic String createURLKey(String url)
IURLFactory
createURLKey
in interface IURLFactory
createURLKey
in class NoExtURLCreator
Copyright © 2012-2018. All Rights Reserved.