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.
|
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() |
getProducedSocketAddressTypes, getScheme
public static final String STATIC_SCHEME
@Nullable public NameResolver newNameResolver(URI targetUri, NameResolver.Args args)
newNameResolver
in class NameResolver.Factory
public String getDefaultScheme()
getDefaultScheme
in class NameResolver.Factory
protected boolean isAvailable()
isAvailable
in class NameResolverProvider
protected int priority()
priority
in class NameResolverProvider