|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.staticexport.CmsLinkProcessor
public class CmsLinkProcessor
Handles the link replacement required e.g. to process elements for XML pages.
| Field Summary | |
|---|---|
static String |
HTML_END
HTML end. |
static String |
HTML_START
HTML start. |
| Constructor Summary | |
|---|---|
CmsLinkProcessor(CmsObject cms,
CmsLinkTable linkTable,
String encoding,
String relativePath)
Creates a new CmsLinkProcessor. |
|
| Method Summary | |
|---|---|
static String |
escapeLink(String source)
Escapes all &, e.g. |
CmsLinkTable |
getLinkTable()
Returns the link table this lik processor was initialized with. |
protected void |
processImageTag(ImageTag imageTag)
Process an image tag. |
String |
processLinks(String content)
Starts link processing for the given content in processing mode. |
protected void |
processLinkTag(LinkTag linkTag)
Process a link tag. |
String |
replaceLinks(String content)
Starts link processing for the given content in replacement mode. |
static String |
unescapeLink(String source)
Unescapes all &, that is replaces them with a &. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String HTML_END
public static final String HTML_START
| Constructor Detail |
|---|
public CmsLinkProcessor(CmsObject cms,
CmsLinkTable linkTable,
String encoding,
String relativePath)
cms - the cms objectlinkTable - the link table to useencoding - the encoding to userelativePath - additional path for links with relative path (only used in "replace" mode)| Method Detail |
|---|
public CmsLinkTable getLinkTable()
public String processLinks(String content)
throws ParserException
Macros are replaced by links.
content - the content to process
ParserException - if something goes wrong
public String replaceLinks(String content)
throws ParserException
Links are replaced by macros.
content - the content to process
ParserException - if something goes wrongprotected void processImageTag(ImageTag imageTag)
imageTag - the tag to processpublic static String unescapeLink(String source)
&, that is replaces them with a &.
source - the String to unescape
public static String escapeLink(String source)
&, e.g. replaces them with a &.
source - the String to escape
protected void processLinkTag(LinkTag linkTag)
linkTag - the tag to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||