Class JGitClientSession.ChainingAttributes

java.lang.Object
org.eclipse.jgit.internal.transport.sshd.JGitClientSession.ChainingAttributes
All Implemented Interfaces:
org.apache.sshd.common.AttributeRepository
Direct Known Subclasses:
JGitClientSession.SessionAttributes
Enclosing class:
JGitClientSession

public static class JGitClientSession.ChainingAttributes extends Object implements org.apache.sshd.common.AttributeRepository
An AttributeRepository that chains together two other attribute sources in a hierarchy.
  • Constructor Details

    • ChainingAttributes

      public ChainingAttributes(org.apache.sshd.common.AttributeRepository self, org.apache.sshd.common.AttributeRepository parent)
      Create a new JGitClientSession.ChainingAttributes attribute source.
      Parameters:
      self - to search for attributes first
      parent - to search for attributes if not found in self
  • Method Details

    • getAttributesCount

      public int getAttributesCount()
      Specified by:
      getAttributesCount in interface org.apache.sshd.common.AttributeRepository
    • getAttribute

      public <T> T getAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)
      Specified by:
      getAttribute in interface org.apache.sshd.common.AttributeRepository
    • attributeKeys

      public Collection<org.apache.sshd.common.AttributeRepository.AttributeKey<?>> attributeKeys()
      Specified by:
      attributeKeys in interface org.apache.sshd.common.AttributeRepository
    • resolveAttribute

      public <T> T resolveAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)
      Specified by:
      resolveAttribute in interface org.apache.sshd.common.AttributeRepository