org.alfresco.linkvalidation
Class HrefStatusMap
java.lang.Object
org.alfresco.linkvalidation.HrefStatusMap
public class HrefStatusMap
- extends java.lang.Object
A synchronized wrapper for the ephemeral cache of href status results.
The key is the raw url that was tested (not an md5sum),
the value is a pair consisting of the url's status code,
and the list of files accessed when the URL is requested,
if known. Note that all url & file data are in the namespace
of the proposed changeset (e.g.: the workflow).
This class also allows the non-synchronized map it wraps to be extracted.
Method Summary |
org.alfresco.util.Pair |
get(java.lang.String url)
|
void |
put(java.lang.String url,
org.alfresco.util.Pair status)
Takes the url and the Pair: status code, file dependency list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HrefStatusMap
public HrefStatusMap()
HrefStatusMap
public HrefStatusMap(java.util.Map status)
put
public void put(java.lang.String url,
org.alfresco.util.Pair status)
- Takes the url and the Pair: status code, file dependency list
get
public org.alfresco.util.Pair get(java.lang.String url)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.