|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
HTML link validation of a Cms file is enabled if the file's resource type implements the interface I_CmsHtmlLinkValidatable. Cms files with resource types that do not implement this interface don't get validated on broken links for example when a project gets published. Thus, this interface serves to identify "validatable" Cms files in the OpenCms VFS.
HTML links are considered as href attribs in anchor tags and src attribs in image tags.
Method Summary | |
java.util.List |
findLinks(CmsObject cms,
CmsResource resource)
Returns a list with the Cms URIs of all linked resources (either via href attribs or img tags) in the (body) content of the specified Cms resource. |
Method Detail |
public java.util.List findLinks(CmsObject cms, CmsResource resource)
Implementations of this method must return an empty list, or better
Collections.EMPTY_LIST
, if no links are found at all.
Second, implementations of this method are responsible to filter out any "external" URLs pointing to targets outside the OpenCms VFS (http, https, mailto, ftp etc.) from the result list.
cms
- the current user's Cms objectresource
- a CmsResource with links
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |