Class AbstractKexExtensionParser<T>
- java.lang.Object
-
- org.apache.sshd.common.kex.extension.parser.AbstractKexExtensionParser<T>
-
- Type Parameters:
T- Generic extension type
- All Implemented Interfaces:
KexExtensionParser<T>,NamedResource
- Direct Known Subclasses:
DelayCompression,Elevation,NoFlowControl,ServerSignatureAlgorithms
public abstract class AbstractKexExtensionParser<T> extends java.lang.Object implements KexExtensionParser<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractKexExtensionParser(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidencode(T value, Buffer buffer)java.lang.StringgetName()voidputExtension(T value, Buffer buffer)Adds the name + value to the buffer-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.kex.extension.KexExtensionParser
parseExtension, parseExtension, parseExtension
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
putExtension
public void putExtension(T value, Buffer buffer) throws java.io.IOException
Description copied from interface:KexExtensionParserAdds the name + value to the buffer- Specified by:
putExtensionin interfaceKexExtensionParser<T>- Parameters:
value- The value of the extensionbuffer- The targetBuffer- Throws:
java.io.IOException- If failed to encode
-
-