public class DatasetUrl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ServiceType |
serviceType
Deprecated.
|
java.lang.String |
trueurl
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DatasetUrl |
create(ServiceType serviceType,
java.lang.String trueurl)
Create a DatasetUrl, which annotates a url with its service type.
|
boolean |
equals(java.lang.Object o) |
static DatasetUrl |
findDatasetUrl(java.lang.String orgLocation) |
static java.util.List<java.lang.String> |
getProtocols(java.lang.String url)
Return the set of leading protocols for a url; may be more than one.
|
ServiceType |
getServiceType() |
java.lang.String |
getTrueurl() |
int |
hashCode() |
@Deprecated public final ServiceType serviceType
@Deprecated public final java.lang.String trueurl
public static DatasetUrl create(@Nullable ServiceType serviceType, java.lang.String trueurl)
serviceType
- The serviceType, may be null if not known.trueurl
- The actual URLpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public static DatasetUrl findDatasetUrl(java.lang.String orgLocation) throws java.io.IOException
java.io.IOException
public static java.util.List<java.lang.String> getProtocols(java.lang.String url)
url
- the url whose protocols to returnpublic ServiceType getServiceType()
public java.lang.String getTrueurl()
public int hashCode()
hashCode
in class java.lang.Object