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, staticCleanString
protected MenuElement getSectionPage(MenuElement page)
Exception
protected boolean isWithId()
protected String createURLWithoutExt(ContentContext ctx, MenuElement currentPage) throws Exception
Exception
protected String getExtension(ContentContext ctx)
public String createURL(ContentContext ctx, MenuElement currentPage) throws Exception
IURLFactory
ctx
- content contextcurrentPage
- page in contentException
public String createURLKey(String url)
IURLFactory
createURLKey
in interface IURLFactory
createURLKey
in class AbstractURLFactory
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.