public class NoExtURLCreator extends Object implements IURLFactory
| Constructor and Description |
|---|
NoExtURLCreator() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
cleanString(String text) |
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...)
|
static void |
main(String[] args) |
protected boolean fromDefaultLanguage()
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
IURLFactorycreateURL in interface IURLFactoryctx - content contextcurrentPage - page in contentExceptionpublic String getFormat(ContentContext ctx, String url)
IURLFactorygetFormat in interface IURLFactoryurl - a urlpublic String createURLKey(String url)
IURLFactorycreateURLKey in interface IURLFactorypublic static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.