|
|
@ -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
|
|
|
|