|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hippoecm.hst.content.rewriter.impl.AbstractContentRewriter<T>
public abstract class AbstractContentRewriter<T>
AbstractContentRewriter
An abstract adapter class for ContentRewriter.
The methods in this class are empty.
This class exists as convenience for creating ContentRewriter objects.
| Constructor Summary | |
|---|---|
AbstractContentRewriter()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContentRewriter()
| Method Detail |
|---|
public T rewrite(T content,
javax.jcr.Node contentNode,
HstRequestContext requestContext)
ContentRewriter
rewrite in interface ContentRewriter<T>content - content object. It can be type of String or whatever, depending on the implementation and the context.contentNode - content node
public T rewrite(T content,
javax.jcr.Node contentNode,
HstRequestContext requestContext,
String targetMountAlias)
ContentRewriter
rewrite in interface ContentRewriter<T>
public T rewrite(T content,
javax.jcr.Node contentNode,
HstRequestContext requestContext,
Mount targetMount)
ContentRewriter
rewrite in interface ContentRewriter<T>public boolean isFullyQualifiedLinks()
isFullyQualifiedLinks in interface ContentRewriter<T>true when fully qualified links (URLs) should be createdpublic void setFullyQualifiedLinks(boolean fullyQualifiedLinks)
ContentRewriterContentRewriter should create fully qualified links (URLs) for internal links.
setFullyQualifiedLinks in interface ContentRewriter<T>public void setImageVariant(ImageVariant imageVariant)
ContentRewriterContentRewriter should use an imageVariant.
setImageVariant in interface ContentRewriter<T>public ImageVariant getImageVariant()
getImageVariant in interface ContentRewriter<T>ContentRewriter.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 | |||||||||