|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.link.AbsolutePathTransformer
public class AbsolutePathTransformer
Creates links with the absolute path. Alternatively can prefix links with the webapp context path as well.
Transformer is also capable of applying URI2Repository mapping and i18n (mapping links to different path
based on the current locale value). See AbstractI18nContentSupport
for details.
Constructor Summary | |
---|---|
AbsolutePathTransformer(boolean addContextPath,
boolean useURI2RepositoryMapping,
boolean useI18N)
Creates new transformer. |
Method Summary | |
---|---|
protected URI2RepositoryManager |
getURI2RepositoryManager()
|
java.lang.String |
getURISuffix(Link uuidLink)
Gets reminder of the URI after the path (i.e. |
boolean |
isAddContextPath()
|
boolean |
isUseI18N()
|
boolean |
isUseURI2RepositoryMapping()
|
protected java.lang.String |
prefixLink(java.lang.String linkStr)
|
void |
setAddContextPath(boolean addContextPath)
|
void |
setUseI18N(boolean useI18N)
|
void |
setUseURI2RepositoryMapping(boolean useURI2RepositoryMapping)
|
java.lang.String |
transform(Link uuidLink)
Transforms Link into desired output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbsolutePathTransformer(boolean addContextPath, boolean useURI2RepositoryMapping, boolean useI18N)
addContextPath
- Flag to specify whether or not to prepend context path to created links.useURI2RepositoryMapping
- Flag specifying whether or not to apply any URI2Repository mapping.useI18N
- Flag specifying whether or not to translate link path based on current locale value.Method Detail |
---|
public java.lang.String transform(Link uuidLink)
transform
in interface LinkTransformer
uuidLink
- Link to repository content be transformed.
protected URI2RepositoryManager getURI2RepositoryManager()
protected java.lang.String prefixLink(java.lang.String linkStr)
public java.lang.String getURISuffix(Link uuidLink)
public boolean isAddContextPath()
public void setAddContextPath(boolean addContextPath)
public boolean isUseI18N()
public void setUseI18N(boolean useI18N)
public boolean isUseURI2RepositoryMapping()
public void setUseURI2RepositoryMapping(boolean useURI2RepositoryMapping)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |