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 extends Object>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionChainingAttributes
(org.apache.sshd.common.AttributeRepository self, org.apache.sshd.common.AttributeRepository parent) Create a newJGitClientSession.ChainingAttributes
attribute source. -
Method Summary
Modifier and TypeMethodDescriptionCollection<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)
-
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 newJGitClientSession.ChainingAttributes
attribute source.- Parameters:
self
- to search for attributes firstparent
- to search for attributes if not found inself
-
-
Method Details
-
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
- 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
-