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 SyspropsMapWrapperThe one and only wrapper instancestatic final PropertyResolverExposes the "raw" system properties as aPropertyResolverwithout any further filteringstatic final StringPrefix of properties used by the mapper to identify SSHD related settingsstatic final PropertyResolverAPropertyResolverwith no parent that exposes the system properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()static Stringstatic StringbooleanisEmpty()static booleanisMappedSyspropKey(String key) keySet()voidintsize()toString()values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 aPropertyResolverwithout any further filtering -
INSTANCE
The one and only wrapper instance -
SYSPROPS_RESOLVER
APropertyResolverwith no parent that exposes the system properties
-
-
Constructor Details
-
SyspropsMapWrapper
private SyspropsMapWrapper()
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein 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:
trueif key starts withSYSPROPS_MAPPED_PREFIXand 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:
-