Package org.eclipse.jgit.transport
Interface SshConfigStore.HostConfig
-
- All Known Implementing Classes:
OpenSshConfigFile.HostEntry
- Enclosing interface:
- SshConfigStore
public static interface SshConfigStore.HostConfig
A host entry from the ssh config. Any merging of global values and of several matching host entries, %-substitutions, and ~ replacement have all been done.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,List<String>>
getMultiValuedOptions()
Retrieves an unmodifiable map of all multi- or list-valued options, with case-insensitive lookup by keys.Map<String,String>
getOptions()
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.String
getValue(String key)
Retrieves the value of a single-valued key, or the first if the key has multiple values.List<String>
getValues(String key)
Retrieves the values of a multi- or list-valued key.
-
-
-
Method Detail
-
getValue
String getValue(String key)
Retrieves the value of a single-valued key, or the first if the key has multiple values. Keys are case-insensitive, sogetValue("HostName") == getValue("HOSTNAME")
.- Parameters:
key
- to get the value of- Returns:
- the value, or
null
if none
-
getValues
List<String> getValues(String key)
Retrieves the values of a multi- or list-valued key. Keys are case-insensitive, sogetValue("HostName") == getValue("HOSTNAME")
.- Parameters:
key
- to get the values of- Returns:
- a possibly empty list of values
-
getOptions
@NonNull Map<String,String> getOptions()
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.- Returns:
- all single-valued options
-
-