info.magnolia.link
Class I18nPathTransformer
java.lang.Object
info.magnolia.link.AbsolutePathTransformer
info.magnolia.link.I18nPathTransformer
- All Implemented Interfaces:
- LinkTransformer
public class I18nPathTransformer
- extends AbsolutePathTransformer
Creates links with the absolute path and prefixes it with selected locale if this is supported,
falls back to current one otherwise.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
I18nPathTransformer
public I18nPathTransformer()
I18nPathTransformer
public I18nPathTransformer(boolean addContextPath,
boolean useURI2RepositoryMapping,
boolean useI18N,
Locale locale)
transform
public String transform(Link uuidLink)
- Description copied from class:
AbsolutePathTransformer
- Transforms Link into desired output.
- Specified by:
transform
in interface LinkTransformer
- Overrides:
transform
in class AbsolutePathTransformer
- Parameters:
uuidLink
- Link to repository content be transformed.
- Returns:
- Transformed link.
localizeURI
protected String localizeURI(String linkStr,
Locale locale)
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.