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
AnAttributeRepository
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 Object>
-
-
Constructor Summary
Constructors Constructor Description ChainingAttributes(org.apache.sshd.common.AttributeRepository self, org.apache.sshd.common.AttributeRepository parent)
Create a newJGitClientSession.ChainingAttributes
attribute source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Constructor Detail
-
ChainingAttributes
public ChainingAttributes(org.apache.sshd.common.AttributeRepository self, org.apache.sshd.common.AttributeRepository parent)
Create a newJGitClientSession.ChainingAttributes
attribute source.- Parameters:
self
- to search for attributes firstparent
- to search for attributes if not found inself
-
-
Method Detail
-
getAttributesCount
public int getAttributesCount()
- Specified by:
getAttributesCount
in interfaceorg.apache.sshd.common.AttributeRepository
-
getAttribute
public <T> T getAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)
- Specified by:
getAttribute
in interfaceorg.apache.sshd.common.AttributeRepository
-
attributeKeys
public Collection<org.apache.sshd.common.AttributeRepository.AttributeKey<?>> attributeKeys()
- Specified by:
attributeKeys
in interfaceorg.apache.sshd.common.AttributeRepository
-
resolveAttribute
public <T> T resolveAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key)
- Specified by:
resolveAttribute
in interfaceorg.apache.sshd.common.AttributeRepository
-
-