Package org.apache.sshd.common
Class SyspropsMapWrapper
java.lang.Object
org.apache.sshd.common.SyspropsMapWrapper
A wrapper that exposes a read-only
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 others-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SyspropsMapWrapper
The one and only wrapper instancestatic final PropertyResolver
Exposes the "raw" system properties as aPropertyResolver
without any further filteringstatic final String
Prefix of properties used by the mapper to identify SSHD related settingsstatic final PropertyResolver
APropertyResolver
with no parent that exposes the system properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
static String
static String
boolean
isEmpty()
static boolean
isMappedSyspropKey
(String key) keySet()
void
int
size()
toString()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
SYSPROPS_MAPPED_PREFIX
Prefix of properties used by the mapper to identify SSHD related settings- See Also:
-
RAW_PROPS_RESOLVER
Exposes the "raw" system properties as aPropertyResolver
without any further filtering -
INSTANCE
The one and only wrapper instance -
SYSPROPS_RESOLVER
APropertyResolver
with no parent that exposes the system properties
-
-
Constructor Details
-
SyspropsMapWrapper
private SyspropsMapWrapper()
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object>
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-
toString
-
isMappedSyspropKey
- Parameters:
key
- Key to be tested- Returns:
true
if key starts withSYSPROPS_MAPPED_PREFIX
and continues with a dot followed by some characters
-
getUnmappedSyspropKey
- Parameters:
key
- Key to be transformed- Returns:
- The "pure" key name if a mapped one, same as input otherwise
- See Also:
-
getMappedSyspropKey
- Parameters:
key
- The original key- Returns:
- A key prefixed by
SYSPROPS_MAPPED_PREFIX
- See Also:
-