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
Modifier and TypeMethodDescriptionRetrieves an unmodifiable map of all multi- or list-valued options, with case-insensitive lookup by keys.Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.Retrieves the value of a single-valued key, or the first if the key has multiple values.Retrieves the values of a multi- or list-valued key.
-
Method Details
-
getValue
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
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
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.- Returns:
- all single-valued options
-
getMultiValuedOptions
Retrieves an unmodifiable map of all multi- or list-valued options, with case-insensitive lookup by keys.- Returns:
- all multi-valued options
-