public interface TargetIdManager
Modifier and Type | Method and Description |
---|---|
List<String> |
getAvailableTargetIds()
Returns the list of all available target IDs used by the site.
|
String |
getCurrentTargetId()
Returns the target ID for the current request, or null or empty if there's no target ID.
|
String |
getFallbackTargetId()
Returns the fallback target ID.
|
String getCurrentTargetId() throws IllegalStateException
IllegalStateException
String getFallbackTargetId() throws IllegalStateException
For example, if the candidate targeted URLs are /site/website/index_es_CR.xml and /site/website/index_es.xml, and the fallback target ID is "en", then /site/website/index_en.xml is added to the list of candidate URLs, but if an empty or null string is the fallback target ID instead, /site/website/index.xml is the last candidate URL.
IllegalStateException
List<String> getAvailableTargetIds() throws IllegalStateException
IllegalStateException
Copyright © 2022 CrafterCMS. All rights reserved.