public class RepositoryUrlCache extends Object implements Serializable
Constructor and Description |
---|
RepositoryUrlCache() |
Modifier and Type | Method and Description |
---|---|
void |
addRepository(String repositoryId,
String repositoryUrl,
String rootUrl)
Adds the URLs of a repository to the cache.
|
UrlBuilder |
getObjectUrl(String repositoryId,
String objectId)
Returns an object URL with the given selector.
|
UrlBuilder |
getObjectUrl(String repositoryId,
String objectId,
String selector)
Returns an object URL with the given selector.
|
UrlBuilder |
getPathUrl(String repositoryId,
String path)
Returns an object URL with the given selector.
|
UrlBuilder |
getPathUrl(String repositoryId,
String path,
String selector)
Returns an object URL with the given selector.
|
String |
getRepositoryBaseUrl(String repositoryId)
Returns the base repository URL of a repository.
|
UrlBuilder |
getRepositoryUrl(String repositoryId)
Returns the repository URL.
|
UrlBuilder |
getRepositoryUrl(String repositoryId,
String selector)
Returns the repository URL with the given selector.
|
String |
getRootUrl(String repositoryId)
Returns the root URL of a repository.
|
void |
removeRepository(String repositoryId)
Removes the URLs of a repository from the cache.
|
public static final String OBJECT_ID
public void addRepository(String repositoryId, String repositoryUrl, String rootUrl)
public void removeRepository(String repositoryId)
public String getRepositoryBaseUrl(String repositoryId)
public UrlBuilder getRepositoryUrl(String repositoryId)
public UrlBuilder getRepositoryUrl(String repositoryId, String selector)
public UrlBuilder getObjectUrl(String repositoryId, String objectId)
public UrlBuilder getObjectUrl(String repositoryId, String objectId, String selector)
public UrlBuilder getPathUrl(String repositoryId, String path)
public UrlBuilder getPathUrl(String repositoryId, String path, String selector)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.