Package de.espirit.firstspirit.access
Interface UrlCreator
- All Known Subinterfaces:
UrlCreator
Deprecated.
Note: Since FirstSpirit v5 implementors should implement the new interface
The url creation during the generate process are delegated to implementations of this interface. Created instances have a lifecycle: The methods
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.- Since:
- 4.0.17
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.since 5.0.3 - useUrlCreator.ABSOLUTE_URL
.static final int
Deprecated.since 5.0.3 - useUrlCreator.ABSOLUTE_URL_NO_PREFIX
.static final List<UrlCreator.Mode>
Deprecated.since 5.0.3 - useUrlCreator.MODES
.static final int
Deprecated.since 5.0.3 - useUrlCreator.RELATIVE_URL
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanUp()
Deprecated.SeeUrlCreator.cleanUp()
.getFilename
(ContentProducer node, TemplateSet templateSet, Language language, String pageSuffix) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0.3 - useUrlCreator.getFilename(ContentProducer, TemplateSet, Language, PageParams)
.getFilename
(Media media, Language lang, Resolution res) Deprecated.getFilename
(String type, String name, String extension, Language language) Deprecated.getUrl
(ContentProducer node, Language language, TemplateSet templateSet, PageParams pageParams, int mode) getUrl
(Media media, Language language, Resolution resolution, int mode) Deprecated.Deprecated.@Nullable String
Deprecated.void
Deprecated.Initialization callback.void
setUrlPrefix
(String value) Deprecated.Set an url prefix.
-
Field Details
-
MODES
Deprecated.since 5.0.3 - useUrlCreator.MODES
.- Since:
- 4.0.52
-
RELATIVE_URL
Deprecated.since 5.0.3 - useUrlCreator.RELATIVE_URL
.- Since:
- 4.0.52
-
ABSOLUTE_URL
Deprecated.since 5.0.3 - useUrlCreator.ABSOLUTE_URL
.- Since:
- 4.0.52
-
ABSOLUTE_URL_NO_PREFIX
Deprecated.since 5.0.3 - useUrlCreator.ABSOLUTE_URL_NO_PREFIX
.- Since:
- 4.0.52
-
-
Method Details
-
init
Deprecated.Initialization callback. This method is called before any other method to initialize this instance.- Parameters:
gc
- the generation context from where this url creator will be used- Since:
- 4.0.17
-
getUrlPrefix
Deprecated.- Since:
- 4.0.17
-
setUrlPrefix
Deprecated.Set an url prefix. Not every url creator needs an url prefix, so this call may be ignored. This method is called before the instance is used and after the instance isinitialized
.- Parameters:
value
- the new url prefix.- Since:
- 4.0.17
- See Also:
-
getFilename
@Deprecated(forRemoval=true) String getFilename(ContentProducer node, TemplateSet templateSet, Language language, String pageSuffix) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0.3 - useUrlCreator.getFilename(ContentProducer, TemplateSet, Language, PageParams)
.This method is no longer used by FirstSpirit since v5. Implementors may throw anUnsupportedOperationException
. FirstSpirit now relies onthis method
.- Since:
- 4.0.95
-
getUrl
String getUrl(ContentProducer node, Language language, TemplateSet templateSet, PageParams pageParams, int mode) Deprecated.- Since:
- 4.1
-
getFilename
Deprecated.- Throws:
IOException
- Since:
- 4.0.17
-
getUrl
Deprecated.- Throws:
IOException
- Since:
- 4.0.17
-
getFilename
Deprecated.- Since:
- 4.0.120
-
getUrl
Deprecated.- Since:
- 4.0.17
-
cleanUp
void cleanUp()Deprecated.SeeUrlCreator.cleanUp()
.- Since:
- 4.0.63
-
UrlCreator
.