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.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.sshd.common.AttributeRepository

    org.apache.sshd.common.AttributeRepository.AttributeKey<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.sshd.common.AttributeRepository
     
    private final org.apache.sshd.common.AttributeRepository
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChainingAttributes(org.apache.sshd.common.AttributeRepository self, org.apache.sshd.common.AttributeRepository parent)
    Create a new JGitClientSession.ChainingAttributes attribute source.
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<org.apache.sshd.common.AttributeRepository.AttributeKey<?>>
     
    <T> T
    getAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)
     
    int
     
    <T> T
    resolveAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)
     

    Methods inherited from class java.lang.Object

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

    • delegate

      private final org.apache.sshd.common.AttributeRepository delegate
    • parent

      private final org.apache.sshd.common.AttributeRepository parent
  • 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