Class JGitClientSession.ChainingAttributes

  • All Implemented Interfaces:
    org.apache.sshd.common.AttributeRepository
    Direct Known Subclasses:
    JGitClientSession.SessionAttributes
    Enclosing class:
    JGitClientSession

    public static class JGitClientSession.ChainingAttributes
    extends java.lang.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 extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.sshd.common.AttributeRepository delegate  
      private org.apache.sshd.common.AttributeRepository parent  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<org.apache.sshd.common.AttributeRepository.AttributeKey<?>> attributeKeys()  
      <T> T getAttribute​(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)  
      int getAttributesCount()  
      <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 Detail

      • delegate

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

        private final org.apache.sshd.common.AttributeRepository parent
    • Constructor Detail

      • 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 Detail

      • 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 java.util.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