public interface UriRegistry
URI
s via a string key.Modifier and Type | Method and Description |
---|---|
URI |
find(String key)
Return a
URI for a string key. |
Map<String,URI> |
findAll()
Return all registered
URI s. |
void |
register(String key,
URI uri)
Register a
URI with a string key. |
void |
unregister(String key)
Remove the registration for a string key.
|
URI find(String key)
URI
for a string key.key
- the key for the URIURI
for the given keyIllegalArgumentException
- if no URI is registered with the keyvoid register(String key, URI uri)
URI
with a string key. Existing
registrations will be overwritten.key
- the key for the URIuri
- the URI
to associate with the keyvoid unregister(String key)
key
- the key for the URI
to unregisterCopyright © 2020 Pivotal Software, Inc.. All rights reserved.