public class StaticNameResolverProvider extends NameResolverProvider
NameResolver with static addresses. This factory uses the
"static" scheme.| Modifier and Type | Field and Description |
|---|---|
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.Args args) |
protected int |
priority() |
String |
toString() |
asFactory, providersnewNameResolver, newNameResolverpublic static final String STATIC_SCHEME
@Nullable public NameResolver newNameResolver(URI targetUri, NameResolver.Args 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