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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.since 5.0.3 - useUrlCreator.ABSOLUTE_URL.static final intDeprecated.since 5.0.3 - useUrlCreator.ABSOLUTE_URL_NO_PREFIX.static final List<UrlCreator.Mode>Deprecated.since 5.0.3 - useUrlCreator.MODES.static final intDeprecated.since 5.0.3 - useUrlCreator.RELATIVE_URL. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp()Deprecated.SeeUrlCreator.cleanUp().getFilename(ContentProducer node, TemplateSet templateSet, Language language, String pageSuffix) Deprecated.This method is no longer used by FirstSpirit since v5.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 StringDeprecated.voidDeprecated.Initialization callback.voidsetUrlPrefix(String value) Deprecated.Set a 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 a 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
String getFilename(ContentProducer node, TemplateSet templateSet, Language language, String pageSuffix) Deprecated.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.