public class LabelAndSectionURLCreator extends AbstractURLFactory
| Constructor and Description |
|---|
LabelAndSectionURLCreator() |
| 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 String |
createURLWithoutExt(ContentContext ctx,
MenuElement currentPage) |
protected String |
getExtension(ContentContext ctx) |
protected MenuElement |
getSectionPage(MenuElement page)
return the name of the first level page active.
|
protected boolean |
isWithId() |
static void |
main(String[] args) |
addAndCheckExistURL, cleanString, getFormat, staticCleanStringprotected MenuElement getSectionPage(MenuElement page)
Exceptionprotected boolean isWithId()
protected String createURLWithoutExt(ContentContext ctx, MenuElement currentPage) throws Exception
Exceptionprotected String getExtension(ContentContext ctx)
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
IURLFactoryctx - content contextcurrentPage - page in contentExceptionpublic String createURLKey(String url)
IURLFactorycreateURLKey in interface IURLFactorycreateURLKey in class AbstractURLFactorypublic static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.