UrlCreator
.@Deprecated public interface UrlCreator
UrlFactory
.
The url creation during the generate process are delegated to implementations of this interface.
Created instances have a lifecycle: The methods init(GenerationContext)
and setUrlPrefix(String)
are called once in this order before any other methods are called. The method cleanUp()
is called when
the instance is no longer used. Instances should hold no static state. Instances are not used concurrently from
different threads.
Modifier and Type | Interface and Description |
---|---|
static class |
UrlCreator.Mode
Deprecated.
since 5.0.3 - use
UrlCreator.Mode . |
Modifier and Type | Field and Description |
---|---|
static int |
ABSOLUTE_URL
Deprecated.
since 5.0.3 - use
UrlCreator.ABSOLUTE_URL . |
static int |
ABSOLUTE_URL_NO_PREFIX
Deprecated.
since 5.0.3 - use
UrlCreator.ABSOLUTE_URL_NO_PREFIX . |
static List<UrlCreator.Mode> |
MODES
Deprecated.
since 5.0.3 - use
UrlCreator.MODES . |
static int |
RELATIVE_URL
Deprecated.
since 5.0.3 - use
UrlCreator.RELATIVE_URL . |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Deprecated.
See
UrlCreator.cleanUp() . |
String |
getFilename(ContentProducer node,
TemplateSet templateSet,
Language language,
String pageSuffix)
Deprecated.
since 5.0.3 - use
UrlCreator.getFilename(ContentProducer, TemplateSet, Language, PageParams) . |
String |
getFilename(Media media,
Language lang,
Resolution res)
Deprecated.
|
String |
getFilename(String type,
String name,
String extension,
Language language)
Deprecated.
|
String |
getUrl(ContentProducer node,
Language language,
TemplateSet templateSet,
PageParams pageParams,
int mode)
Deprecated.
|
String |
getUrl(Media media,
Language language,
Resolution resolution,
int mode)
Deprecated.
|
String |
getUrl(String type,
String name,
String extension,
Language language,
int mode)
Deprecated.
|
String |
getUrlPrefix()
Deprecated.
|
void |
init(GenerationContext gc)
Deprecated.
Initialization callback.
|
void |
setUrlPrefix(String value)
Deprecated.
Set an url prefix.
|
@Deprecated static final List<UrlCreator.Mode> MODES
UrlCreator.MODES
.@Deprecated static final int RELATIVE_URL
UrlCreator.RELATIVE_URL
.@Deprecated static final int ABSOLUTE_URL
UrlCreator.ABSOLUTE_URL
.@Deprecated static final int ABSOLUTE_URL_NO_PREFIX
UrlCreator.ABSOLUTE_URL_NO_PREFIX
.void init(GenerationContext gc)
gc
- the generation context from where this url creator will be usedvoid setUrlPrefix(String value)
initialized
.value
- the new url prefix.getUrlPrefix()
@Deprecated String getFilename(ContentProducer node, TemplateSet templateSet, Language language, String pageSuffix)
UrlCreator.getFilename(ContentProducer, TemplateSet, Language, PageParams)
.UnsupportedOperationException
. FirstSpirit now relies on this method
.String getUrl(ContentProducer node, Language language, TemplateSet templateSet, PageParams pageParams, int mode)
String getFilename(Media media, Language lang, Resolution res) throws IOException
IOException
String getUrl(Media media, Language language, Resolution resolution, int mode) throws IOException
IOException
String getFilename(String type, String name, String extension, Language language)
String getUrl(String type, String name, String extension, Language language, int mode)
void cleanUp()
UrlCreator.cleanUp()
.Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408