public interface ContentRewriter<T>
Modifier and Type | Method and Description |
---|---|
ImageVariant |
getImageVariant() |
boolean |
isFullyQualifiedLinks() |
T |
rewrite(T content,
javax.jcr.Node contentNode,
HstRequestContext requestContext)
Rewrites the content of the content node.
|
T |
rewrite(T content,
javax.jcr.Node contentNode,
HstRequestContext requestContext,
Mount targetMount)
Rewrites the content of the content node.
|
T |
rewrite(T content,
javax.jcr.Node contentNode,
HstRequestContext requestContext,
String targetMountAlias)
Rewrites the content of the content node.
|
void |
setFullyQualifiedLinks(boolean fullyQualifiedLinks)
Sets whether this
ContentRewriter should create fully qualified links (URLs) for internal links. |
void |
setImageVariant(ImageVariant imageVariant)
Sets whether this
ContentRewriter should use an imageVariant. |
T rewrite(T content, javax.jcr.Node contentNode, HstRequestContext requestContext)
content
- content object. It can be type of String or whatever, depending on the implementation and the context.contentNode
- content noderequestContext
- T rewrite(T content, javax.jcr.Node contentNode, HstRequestContext requestContext, String targetMountAlias)
content
- contentNode
- requestContext
- targetMountAlias
- T rewrite(T content, javax.jcr.Node contentNode, HstRequestContext requestContext, Mount targetMount)
content
- contentNode
- requestContext
- targetMount
- void setFullyQualifiedLinks(boolean fullyQualifiedLinks)
ContentRewriter
should create fully qualified links (URLs) for internal links.fullyQualifiedLinks
- boolean isFullyQualifiedLinks()
true
when fully qualified links (URLs) should be createdvoid setImageVariant(ImageVariant imageVariant)
ContentRewriter
should use an imageVariant.imageVariant
- ImageVariant getImageVariant()
setImageVariant(ImageVariant)
or null
when
no image variant was setCopyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.