@FunctionalInterface public interface URITranslator
| Modifier and Type | Interface and Description |
|---|---|
static class |
URITranslator.CompositeURITranslator |
static class |
URITranslator.MappingURITranslator
Provides support for legacy map-based translations
|
| Modifier and Type | Field and Description |
|---|---|
static URITranslator |
NOOP |
| Modifier and Type | Method and Description |
|---|---|
static URITranslator.CompositeURITranslator |
combine(Collection<? extends URITranslator> uriTranslators)
Creates a CompositeURITranslator.
|
static URITranslator.CompositeURITranslator |
combine(URITranslator... uriTranslators)
Creates a CompositeURITranslator.
|
static URITranslator |
map(Map<String,String> uriMappings)
Creates a map-based mapping from one URI to another.
|
static URITranslator |
map(String source,
String target)
Creates a simple mapping from one URI to another.
|
static URITranslator |
map(URI source,
URI target)
Creates a simple mapping from one URI to another.
|
URI |
translate(URI original)
Translates one URI into another.
|
static final URITranslator NOOP
URI translate(URI original)
original - the URI to translatestatic URITranslator map(String source, String target)
source - the URI to matchtarget - the URI to return when matchedstatic URITranslator map(URI source, URI target)
source - the URI to matchtarget - the URI to return when matchedstatic URITranslator map(Map<String,String> uriMappings)
uriMappings - the mappings to buildstatic URITranslator.CompositeURITranslator combine(URITranslator... uriTranslators)
uriTranslators - the translators to combinestatic URITranslator.CompositeURITranslator combine(Collection<? extends URITranslator> uriTranslators)
uriTranslators - the translators to combineCopyright © 2023. All rights reserved.