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_PORT
Constructor and Description |
---|
StaticNameResolverProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultScheme() |
protected boolean |
isAvailable() |
NameResolver |
newNameResolver(URI targetUri,
Attributes params) |
protected int |
priority() |
String |
toString() |
asFactory, providers
public static final String STATIC_SCHEME
public static final URI STATIC_DEFAULT_URI
@Nullable public NameResolver newNameResolver(URI targetUri, Attributes params)
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