|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.util.LinkSubstitution
| Constructor Summary | |
LinkSubstitution()
|
|
| Method Summary | |
static String |
getLinkSubstitution(CmsObject cms,
String link)
Replaces the link according to the rules and registers it to the requestcontex if we are in export modus. |
static String |
getRelativePath(String baseFile,
String linkTarget)
This methood calculates the relative path to a resource in OpenCms depending on the page where it is used. |
String |
substituteContentBody(String body,
String webappUrl,
String fileName)
|
String |
substituteEditorContent(CmsObject cms,
String content)
Parses the html content for the editor. |
String |
substituteEditorContent(CmsObject cms,
String content,
String path,
String relativeRoot)
parses the html content from the editor. |
String |
substituteEditorContentBody(CmsObject cms,
String body)
Parses the content of the body tag of a html page. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinkSubstitution()
| Method Detail |
public String substituteEditorContentBody(CmsObject cms,
String body)
throws CmsException
CmsException
public String substituteEditorContent(CmsObject cms,
String content)
throws CmsException
cms - the CmsObjectcontent - the html content fragment
CmsException
public String substituteContentBody(String body,
String webappUrl,
String fileName)
throws CmsException
CmsException
public String substituteEditorContent(CmsObject cms,
String content,
String path,
String relativeRoot)
throws CmsException
CmsException
public static String getLinkSubstitution(CmsObject cms,
String link)
public static String getRelativePath(String baseFile,
String linkTarget)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||