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
|
String href_attr_; // href attribute lookup prefix
|
||||||
|
|
||||||
|
int src_version_;
|
||||||
String src_store_;
|
String src_store_;
|
||||||
|
|
||||||
|
int dst_version_;
|
||||||
String dst_store_;
|
String dst_store_;
|
||||||
|
|
||||||
String src_webapp_url_base_;
|
String src_webapp_url_base_;
|
||||||
String dst_webapp_url_base_;
|
String dst_webapp_url_base_;
|
||||||
|
|
||||||
HrefDifference(String href_attr,
|
HrefDifference(String href_attr,
|
||||||
|
int src_version,
|
||||||
String src_store,
|
String src_store,
|
||||||
|
int dst_version,
|
||||||
String dst_store,
|
String dst_store,
|
||||||
String src_webapp_url_base,
|
String src_webapp_url_base,
|
||||||
String dst_webapp_url_base)
|
String dst_webapp_url_base)
|
||||||
{
|
{
|
||||||
href_attr_ = href_attr;
|
href_attr_ = href_attr;
|
||||||
|
|
||||||
|
src_version_ = src_version;
|
||||||
src_store_ = src_store;
|
src_store_ = src_store;
|
||||||
|
|
||||||
|
dst_version_ = dst_version;
|
||||||
dst_store_ = dst_store;
|
dst_store_ = dst_store;
|
||||||
|
|
||||||
src_webapp_url_base_ = src_webapp_url_base;
|
src_webapp_url_base_ = src_webapp_url_base;
|
||||||
dst_webapp_url_base_ = dst_webapp_url_base;
|
dst_webapp_url_base_ = dst_webapp_url_base;
|
||||||
|
|
||||||
@@ -89,12 +101,14 @@ public class HrefDifference
|
|||||||
|
|
||||||
public HrefManifest getHrefManifest() { return href_manifest_; }
|
public HrefManifest getHrefManifest() { return href_manifest_; }
|
||||||
public HrefStatusMap getHrefStatusMap() { return href_status_map_; }
|
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 getHrefAttr() { return href_attr_;}
|
||||||
String getSrcStore() { return src_store_;}
|
String getSrcStore() { return src_store_;}
|
||||||
String getDstStore() { return dst_store_;}
|
String getDstStore() { return dst_store_;}
|
||||||
String getSrcWebappUrlBase() { return src_webapp_url_base_; }
|
String getSrcWebappUrlBase() { return src_webapp_url_base_; }
|
||||||
String getDstWebappUrlBase() { return dst_webapp_url_base_; }
|
String getDstWebappUrlBase() { return dst_webapp_url_base_; }
|
||||||
|
|
||||||
|
|
||||||
Map<String,String> getDeletedFileMd5() { return deleted_file_md5_; }
|
Map<String,String> getDeletedFileMd5() { return deleted_file_md5_; }
|
||||||
|
@@ -52,8 +52,9 @@ public interface LinkValidationService
|
|||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
public List<HrefManifestEntry> getBrokenHrefManifestEntries(
|
public List<HrefManifestEntry> getBrokenHrefManifestEntries(
|
||||||
String storeNameOrWebappPath
|
String storeNameOrWebappPath)
|
||||||
) throws AVMNotFoundException;
|
throws AVMNotFoundException,
|
||||||
|
SocketException;
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
@@ -65,10 +66,11 @@ public interface LinkValidationService
|
|||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
public List<HrefManifestEntry> getHrefManifestEntries(
|
public List<HrefManifestEntry> getHrefManifestEntries(
|
||||||
String storeNameOrWebappPath,
|
String storeNameOrWebappPath,
|
||||||
int statusGTE,
|
int statusGTE,
|
||||||
int statusLTE) throws
|
int statusLTE)
|
||||||
AVMNotFoundException;
|
throws AVMNotFoundException,
|
||||||
|
SocketException;
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
@@ -195,7 +197,6 @@ public interface LinkValidationService
|
|||||||
* don't actually appear an any web page, but are implicitly present
|
* don't actually appear an any web page, but are implicitly present
|
||||||
* in the site because any asset can be "dead reckoned".
|
* in the site because any asset can be "dead reckoned".
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
public List<String> getHrefsDependentUponFile(String path);
|
public List<String> getHrefsDependentUponFile(String path);
|
||||||
|
Reference in New Issue
Block a user