public class StaticNameResolverProvider extends NameResolverProvider
NameResolver with static addresses. This factory uses the
"static" scheme.| Modifier and Type | Field and Description |
|---|---|
static URI |
STATIC_DEFAULT_URI
The default URI to use if target address is configured.
|
static Function<String,URI> |
STATIC_DEFAULT_URI_MAPPER
The function that should be used as default uri mapper, if no name based default can be computed.
|
static String |
STATIC_SCHEME
The constant containing the scheme that will be used by this factory.
|
PARAMS_DEFAULT_PORTPARAMS_PROXY_DETECTOR| Constructor and Description |
|---|
StaticNameResolverProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultScheme() |
protected boolean |
isAvailable() |
NameResolver |
newNameResolver(URI targetUri,
NameResolver.Helper args)
Deprecated.
|
protected int |
priority() |
String |
toString() |
asFactory, providersnewNameResolver, newNameResolverpublic static final String STATIC_SCHEME
public static final URI STATIC_DEFAULT_URI
@Nullable @Deprecated public NameResolver newNameResolver(URI targetUri, NameResolver.Helper args)
newNameResolver in class NameResolver.Factorypublic String getDefaultScheme()
getDefaultScheme in class NameResolver.Factoryprotected boolean isAvailable()
isAvailable in class NameResolverProviderprotected int priority()
priority in class NameResolverProvider