Package com.day.cq.rewriter.linkchecker
Interface LinkInfoStorage
public interface LinkInfoStorage
Stores LinkInfo objects in the repository.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteLinkInfo(LinkInfo info) Removes link validity information from the repository.voiddeleteLinkInfo(String url) Removes link validity information from the repository.getLinkInfo(String url) Returns validity information for a specific link.String[]getLinks()Returns a list of links about which validity information is stored in the repository.voidputLinkInfo(LinkInfo info) Stores validity information about a link in the repository.voidsync()Forces the storageg to flush it's caches to the repository.
-
Method Details
-
getLinks
String[] getLinks()Returns a list of links about which validity information is stored in the repository.- Returns:
- A list of links
-
getLinkInfo
Returns validity information for a specific link.- Parameters:
url- link to retrieve the information for- Returns:
- A LinkInfo object describing the link or null if no validity information exists for the link
-
putLinkInfo
Stores validity information about a link in the repository.- Parameters:
info- The validity information to be stored
-
deleteLinkInfo
Removes link validity information from the repository.- Parameters:
info- The validity information to be removed
-
deleteLinkInfo
Removes link validity information from the repository.- Parameters:
url- The URL for which the validity information is to be removed
-
sync
void sync()Forces the storageg to flush it's caches to the repository. This should only be invoked by the external linkchecker task.
-