|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentRewriter<T>
ContentRewriter to rewrite document content such as links.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |