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.String
name
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractKexExtensionParser(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
encode(T value, Buffer buffer)
java.lang.String
getName()
void
putExtension(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:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
putExtension
public void putExtension(T value, Buffer buffer) throws java.io.IOException
Description copied from interface:KexExtensionParser
Adds the name + value to the buffer- Specified by:
putExtension
in interfaceKexExtensionParser<T>
- Parameters:
value
- The value of the extensionbuffer
- The targetBuffer
- Throws:
java.io.IOException
- If failed to encode
-
-