mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Prettier exception when virt server is down.
Optimization for initial validation (no rescan necessary on empty store). Now emulating forgiving (non RFC-2396/3987 compliant) behavior most browsers exhibit on links like: <a href="mind the gap.html">...</a> Also bumped schema version to deal with link canonicalization git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6190 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -62,20 +62,32 @@ public class HrefDifference
|
||||
|
||||
|
||||
String href_attr_; // href attribute lookup prefix
|
||||
|
||||
int src_version_;
|
||||
String src_store_;
|
||||
|
||||
int dst_version_;
|
||||
String dst_store_;
|
||||
|
||||
String src_webapp_url_base_;
|
||||
String dst_webapp_url_base_;
|
||||
|
||||
HrefDifference(String href_attr,
|
||||
int src_version,
|
||||
String src_store,
|
||||
int dst_version,
|
||||
String dst_store,
|
||||
String src_webapp_url_base,
|
||||
String dst_webapp_url_base)
|
||||
{
|
||||
href_attr_ = href_attr;
|
||||
|
||||
src_version_ = src_version;
|
||||
src_store_ = src_store;
|
||||
|
||||
dst_version_ = dst_version;
|
||||
dst_store_ = dst_store;
|
||||
|
||||
src_webapp_url_base_ = src_webapp_url_base;
|
||||
dst_webapp_url_base_ = dst_webapp_url_base;
|
||||
|
||||
@@ -89,6 +101,8 @@ public class HrefDifference
|
||||
|
||||
public HrefManifest getHrefManifest() { return href_manifest_; }
|
||||
public HrefStatusMap getHrefStatusMap() { return href_status_map_; }
|
||||
public int getSrcVersion() { return src_version_;}
|
||||
public int getDstVersion() { return dst_version_;}
|
||||
|
||||
String getHrefAttr() { return href_attr_;}
|
||||
String getSrcStore() { return src_store_;}
|
||||
|
@@ -52,8 +52,9 @@ public interface LinkValidationService
|
||||
*/
|
||||
//-------------------------------------------------------------------------
|
||||
public List<HrefManifestEntry> getBrokenHrefManifestEntries(
|
||||
String storeNameOrWebappPath
|
||||
) throws AVMNotFoundException;
|
||||
String storeNameOrWebappPath)
|
||||
throws AVMNotFoundException,
|
||||
SocketException;
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
/**
|
||||
@@ -67,8 +68,9 @@ public interface LinkValidationService
|
||||
public List<HrefManifestEntry> getHrefManifestEntries(
|
||||
String storeNameOrWebappPath,
|
||||
int statusGTE,
|
||||
int statusLTE) throws
|
||||
AVMNotFoundException;
|
||||
int statusLTE)
|
||||
throws AVMNotFoundException,
|
||||
SocketException;
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@@ -195,7 +197,6 @@ public interface LinkValidationService
|
||||
* don't actually appear an any web page, but are implicitly present
|
||||
* in the site because any asset can be "dead reckoned".
|
||||
*
|
||||
*
|
||||
*/
|
||||
//-------------------------------------------------------------------------
|
||||
public List<String> getHrefsDependentUponFile(String path);
|
||||
|
Reference in New Issue
Block a user