Class JGitHostConfigEntry

java.lang.Object
org.apache.sshd.client.config.hosts.HostPatternsHolder
org.apache.sshd.client.config.hosts.HostConfigEntry
org.eclipse.jgit.internal.transport.sshd.JGitHostConfigEntry
All Implemented Interfaces:
org.apache.sshd.common.auth.MutableUserHolder, org.apache.sshd.common.auth.UsernameHolder

public class JGitHostConfigEntry extends org.apache.sshd.client.config.hosts.HostConfigEntry
A HostConfigEntry that provides access to the multi-valued keys as lists of strings. The super class treats them as single strings containing comma-separated lists.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private Map<String,List<String>>
     

    Fields inherited from class org.apache.sshd.client.config.hosts.HostConfigEntry

    DEFAULT_EXCLUSIVE_IDENTITIES, EXCLUSIVE_IDENTITIES_CONFIG_PROP, EXPLICIT_PROPERTIES, HOME_TILDE_CHAR, HOST_CONFIG_PROP, HOST_NAME_CONFIG_PROP, IDENTITY_AGENT, IDENTITY_FILE_CONFIG_PROP, LOCAL_HOME_MACRO, LOCAL_HOST_MACRO, LOCAL_USER_MACRO, MULTI_VALUE_SEPARATORS, PATH_MACRO_CHAR, PORT_CONFIG_PROP, PROXY_JUMP_CONFIG_PROP, REMOTE_HOST_MACRO, REMOTE_PORT_MACRO, REMOTE_USER_MACRO, STD_CONFIG_FILENAME, USER_CONFIG_PROP

    Fields inherited from class org.apache.sshd.client.config.hosts.HostPatternsHolder

    ALL_HOSTS_PATTERN, NEGATION_CHAR_PATTERN, NON_STANDARD_PORT_PATTERN_ENCLOSURE_END_DELIM, NON_STANDARD_PORT_PATTERN_ENCLOSURE_START_DELIM, PATTERN_CHARS, PORT_VALUE_DELIMITER, SINGLE_CHAR_PATTERN, WILDCARD_PATTERN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves all multi-valued options.
    void
    Sets the multi-valued options.

    Methods inherited from class org.apache.sshd.client.config.hosts.HostConfigEntry

    addIdentity, addIdentity, append, appendHostConfigEntries, appendNonEmptyPort, appendNonEmptyProperties, appendNonEmptyProperty, appendNonEmptyValues, appendNonEmptyValues, appendPropertyValue, appendUserHome, appendUserHome, appendUserHome, findBestMatch, findBestMatch, findBestMatch, getDefaultHostConfigFile, getHost, getHostName, getIdentities, getPort, getProperties, getProperty, getProperty, getProxyJump, getUsername, isIdentitiesOnly, normalizeEntry, parseConfigValue, processGlobalValues, processProperty, readHostConfigEntries, readHostConfigEntries, readHostConfigEntries, readHostConfigEntries, readHostConfigEntries, removeProperty, resolveHostName, resolveHostName, resolveIdentityFilePath, resolvePort, resolvePort, resolveProxyJump, resolveProxyJump, resolveUsername, resolveUsername, setHost, setHost, setHostName, setIdentities, setIdentitiesOnly, setPort, setProperties, setProperty, setProxyJump, setUsername, toHostConfigEntryResolver, toString, updateEntriesList, updateGlobalHostName, updateGlobalIdentities, updateGlobalIdentityOnly, updateGlobalPort, updateGlobalProperties, updateGlobalUserName, writeHostConfigEntries, writeHostConfigEntries

    Methods inherited from class org.apache.sshd.client.config.hosts.HostPatternsHolder

    findMatchingEntries, findMatchingEntries, getPatterns, isHostMatch, isHostMatch, isHostMatch, isPortMatch, isSpecificHostPattern, isValidPatternChar, parsePatterns, parsePatterns, setPatterns, toPattern

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • JGitHostConfigEntry

      public JGitHostConfigEntry()
  • Method Details

    • setMultiValuedOptions

      public void setMultiValuedOptions(Map<String,List<String>> options)
      Sets the multi-valued options.
      Parameters:
      options - to set, may be null to set an empty map
    • getMultiValuedOptions

      @NonNull public Map<String,List<String>> getMultiValuedOptions()
      Retrieves all multi-valued options.
      Returns:
      an unmodifiable map