public final class SyspropsMapWrapper extends Object implements Map<String,Object>
Map
access to the system properties. Any attempt to modify it will throw
UnsupportedOperationException
. The mapper uses the SYSPROPS_MAPPED_PREFIX
to filter and access' only
these properties, ignoring all othersModifier and Type | Field and Description |
---|---|
static SyspropsMapWrapper |
INSTANCE
The one and only wrapper instance
|
static PropertyResolver |
RAW_PROPS_RESOLVER
Exposes the "raw" system properties as a
PropertyResolver without any further filtering |
static String |
SYSPROPS_MAPPED_PREFIX
Prefix of properties used by the mapper to identify SSHD related settings
|
static PropertyResolver |
SYSPROPS_RESOLVER
A
PropertyResolver with no parent that exposes the system properties |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
static String |
getMappedSyspropKey(Object key) |
static String |
getUnmappedSyspropKey(Object key) |
boolean |
isEmpty() |
static boolean |
isMappedSyspropKey(String key) |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> m) |
Object |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Object> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String SYSPROPS_MAPPED_PREFIX
public static final PropertyResolver RAW_PROPS_RESOLVER
PropertyResolver
without any further filteringpublic static final SyspropsMapWrapper INSTANCE
public static final PropertyResolver SYSPROPS_RESOLVER
PropertyResolver
with no parent that exposes the system propertiespublic boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public static boolean isMappedSyspropKey(String key)
key
- Key to be testedtrue
if key starts with SYSPROPS_MAPPED_PREFIX
and continues with a dot followed by
some characterspublic static String getUnmappedSyspropKey(Object key)
key
- Key to be transformedisMappedSyspropKey(String)
public static String getMappedSyspropKey(Object key)
key
- The original keySYSPROPS_MAPPED_PREFIX
isMappedSyspropKey(String)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.