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.ChainingAttributesattribute source. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.sshd.common.AttributeRepository.AttributeKey<?>><T> TgetAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) int<T> TresolveAttribute(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.ChainingAttributesattribute source.- Parameters:
self- to search for attributes firstparent- to search for attributes if not found inself
-
-
Method Details
-
getAttributesCount
public int getAttributesCount()- Specified by:
getAttributesCountin interfaceorg.apache.sshd.common.AttributeRepository
-
getAttribute
public <T> T getAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) - Specified by:
getAttributein interfaceorg.apache.sshd.common.AttributeRepository
-
attributeKeys
- Specified by:
attributeKeysin interfaceorg.apache.sshd.common.AttributeRepository
-
resolveAttribute
public <T> T resolveAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) - Specified by:
resolveAttributein interfaceorg.apache.sshd.common.AttributeRepository
-