public class UrlParser extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getDataSetsUrl() |
String |
getPart(UrlPart urlPart)
Returns one part of given URL.
|
String |
getVersionsUrl() |
String |
getVersionUrl()
Returns URL to version based on provided URL.
|
boolean |
isUrlToCloudId()
Checks if given URL points to representations list
E.g. |
boolean |
isUrlToDataset()
Checks if given URL points to data-set
E.g. |
boolean |
isUrlToDatasetsList()
Checks if given URL points to data-sets list
E.g. |
boolean |
isUrlToRepresentation()
Checks if given URL points to representation
E.g. |
boolean |
isUrlToRepresentations()
Checks if given URL points to representations list
E.g. |
boolean |
isUrlToRepresentationVersion()
Checks if given URL points to representation version
E.g. |
boolean |
isUrlToRepresentationVersionFile()
Checks if given URL points to file.
E.g. |
boolean |
isUrlToRepresentationVersionFiles()
Checks if given URL points to files list.
E.g. |
boolean |
isUrlToRepresentationVersions()
Checks if given URL points to representation versions list
E.g. |
public UrlParser(String url) throws MalformedURLException
MalformedURLExceptionpublic boolean isUrlToDatasetsList()
public boolean isUrlToDataset()
public boolean isUrlToCloudId()
public boolean isUrlToRepresentations()
public boolean isUrlToRepresentation()
public boolean isUrlToRepresentationVersions()
public boolean isUrlToRepresentationVersion()
public boolean isUrlToRepresentationVersionFiles()
public boolean isUrlToRepresentationVersionFile()
public String getPart(UrlPart urlPart)
urlPart - which one part should be returned.public String getVersionUrl() throws UrlBuilderException
UrlBuilderExceptionpublic String getVersionsUrl() throws UrlBuilderException
UrlBuilderExceptionpublic String getDataSetsUrl() throws UrlBuilderException
UrlBuilderExceptionCopyright © 2013–2017 Europeana Cloud Development Team. All rights reserved.