Package ucar.nc2.dataset
Class DatasetUrl
- java.lang.Object
-
- ucar.nc2.dataset.DatasetUrl
-
@Immutable public class DatasetUrl extends Object
Detection of the protocol from a location string. Contacts the server if necessary to disambiguate, eg opendap from plain http.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatasetUrl
create(ServiceType serviceType, String trueurl)
Create a DatasetUrl, which annotates a url with its service type.boolean
equals(Object o)
static DatasetUrl
findDatasetUrl(String orgLocation)
This creates a DatasetUrl, figures out the ServiceType if possible, and canonicalizes the URL string.ServiceType
getServiceType()
The ServiceType, or null if not known.String
getTrueurl()
The actual URL string which you give to the service specified by getServiceType().int
hashCode()
-
-
-
Method Detail
-
findDatasetUrl
public static DatasetUrl findDatasetUrl(String orgLocation) throws IOException
This creates a DatasetUrl, figures out the ServiceType if possible, and canonicalizes the URL string.- Parameters:
orgLocation
- TODO define syntax.- Throws:
IOException
-
create
public static DatasetUrl create(@Nullable ServiceType serviceType, String trueurl)
Create a DatasetUrl, which annotates a url with its service type.- Parameters:
serviceType
- The serviceType, may be null if not known.trueurl
- The actual URL string.
-
getServiceType
@Nullable public ServiceType getServiceType()
The ServiceType, or null if not known.
-
getTrueurl
public String getTrueurl()
The actual URL string which you give to the service specified by getServiceType().
-
-