|
|
@ -356,6 +356,10 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
|
|
|
|
return this.contentDomain;
|
|
|
|
return this.contentDomain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @deprecated not used (2016-07-20), doesn't handle all protocol cases. Use MultiprotocolURL(MultiProtocolURL, String) instead
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Deprecated // not used 2016-07-20
|
|
|
|
public static MultiProtocolURL newURL(final String baseURL, String relPath) throws MalformedURLException {
|
|
|
|
public static MultiProtocolURL newURL(final String baseURL, String relPath) throws MalformedURLException {
|
|
|
|
if (relPath.startsWith("//")) {
|
|
|
|
if (relPath.startsWith("//")) {
|
|
|
|
// patch for urls starting with "//" which can be found in the wild
|
|
|
|
// patch for urls starting with "//" which can be found in the wild
|
|
|
@ -373,6 +377,10 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
|
|
|
|
return new MultiProtocolURL(new MultiProtocolURL(baseURL), relPath);
|
|
|
|
return new MultiProtocolURL(new MultiProtocolURL(baseURL), relPath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @deprecated not used (2016-07-20), doesn't handle all protocol cases. Use MultiprotocolURL(MultiProtocolURL, String) instead
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Deprecated // not used 2016-07-20
|
|
|
|
public static MultiProtocolURL newURL(final MultiProtocolURL baseURL, String relPath) throws MalformedURLException {
|
|
|
|
public static MultiProtocolURL newURL(final MultiProtocolURL baseURL, String relPath) throws MalformedURLException {
|
|
|
|
if (relPath.startsWith("//")) {
|
|
|
|
if (relPath.startsWith("//")) {
|
|
|
|
// patch for urls starting with "//" which can be found in the wild
|
|
|
|
// patch for urls starting with "//" which can be found in the wild
|
|
|
@ -2441,7 +2449,7 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
|
|
|
|
|
|
|
|
|
|
|
|
if (aURL != null && jURL != null && jURL.toString().equals(aURL.toNormalform(false))) {
|
|
|
|
if (aURL != null && jURL != null && jURL.toString().equals(aURL.toNormalform(false))) {
|
|
|
|
System.out.println("jURL == aURL=" + aURL.toNormalform(false) + "; host=" + aURL.getHost() + "; path=" + aURL.getPath() + "; file=" + aURL.getFile());
|
|
|
|
System.out.println("jURL == aURL=" + aURL.toNormalform(false) + "; host=" + aURL.getHost() + "; path=" + aURL.getPath() + "; file=" + aURL.getFile());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// check stability: the normalform of the normalform must be equal to the normalform
|
|
|
|
// check stability: the normalform of the normalform must be equal to the normalform
|
|
|
|
if (aURL != null) try {
|
|
|
|
if (aURL != null) try {
|
|
|
|