public class URI2RepositoryManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static URI2RepositoryMapping |
DEFAULT_MAPPING |
Constructor and Description |
---|
URI2RepositoryManager() |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(URI2RepositoryMapping mapping) |
URI2RepositoryMapping |
getDefaultMapping() |
String |
getHandle(String uri)
Get the handle for this uri.
|
static URI2RepositoryManager |
getInstance()
Deprecated.
since 4.5, use IoC
|
URI2RepositoryMapping |
getMapping(String uri)
The mapping to use for this uri.
|
protected Comparator<URI2RepositoryMapping> |
getMappingComparator() |
Collection<URI2RepositoryMapping> |
getMappings() |
String |
getRepository(String uri)
Get the repository to use for this uri.
|
String |
getURI(Link uuidLink) |
String |
getURI(String repository,
String handle)
Get the uri to use for this handle.
|
void |
setMappings(Collection<URI2RepositoryMapping> mappings) |
protected static final URI2RepositoryMapping DEFAULT_MAPPING
protected Comparator<URI2RepositoryMapping> getMappingComparator()
public URI2RepositoryMapping getMapping(String uri)
public URI2RepositoryMapping getDefaultMapping()
public void setMappings(Collection<URI2RepositoryMapping> mappings)
public void addMapping(URI2RepositoryMapping mapping)
@Deprecated public static URI2RepositoryManager getInstance()
public Collection<URI2RepositoryMapping> getMappings()
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.