Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.linkmanagement
Class LinkChecker  view LinkChecker download LinkChecker.java

java.lang.Object
  extended bycom.opencms.linkmanagement.LinkChecker

public class LinkChecker
extends java.lang.Object

Extracts all links (anchors) out of a OpenCms page.

Version:
1.0

Constructor Summary
LinkChecker()
           
 
Method Summary
 void checkProject(com.opencms.file.CmsObject cms, int projectId, com.opencms.report.I_CmsReport report)
          This Method checks if the online project has broken links when the project with the projectId is published (if projectId = onlineProjectId it simply checks the online project).
 CmsPageLinks extractLinks(com.opencms.file.CmsObject cms, java.lang.String page)
          Checks the content of the page and extracts all links that are on this page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkChecker

public LinkChecker()
Method Detail

extractLinks

public CmsPageLinks extractLinks(com.opencms.file.CmsObject cms,
                                 java.lang.String page)
                          throws com.opencms.core.CmsException
Checks the content of the page and extracts all links that are on this page. Used by the linkmanagement to save the links in the database.


checkProject

public void checkProject(com.opencms.file.CmsObject cms,
                         int projectId,
                         com.opencms.report.I_CmsReport report)
                  throws com.opencms.core.CmsException
This Method checks if the online project has broken links when the project with the projectId is published (if projectId = onlineProjectId it simply checks the online project).