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 Object implements KexExtensionParser<T>
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractKexExtensionParser(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)
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
-
-
-
-
Constructor Detail
-
AbstractKexExtensionParser
protected AbstractKexExtensionParser(String name)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
putExtension
public void putExtension(T value, Buffer buffer) throws 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:
IOException
- If failed to encode
-
encode
protected abstract void encode(T value, Buffer buffer) throws IOException
- Throws:
IOException
-
-