T - Generic extension typepublic abstract class AbstractKexExtensionParser<T> extends Object implements KexExtensionParser<T>
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractKexExtensionParser(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
encode(T value,
Buffer buffer) |
String |
getName() |
void |
putExtension(T value,
Buffer buffer)
Adds the name + value to the buffer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseExtension, parseExtension, parseExtensionfindByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByNameprotected AbstractKexExtensionParser(String name)
public String getName()
getName in interface NamedResourcepublic void putExtension(T value, Buffer buffer) throws IOException
KexExtensionParserputExtension in interface KexExtensionParser<T>value - The value of the extensionbuffer - The target BufferIOException - If failed to encodeprotected abstract void encode(T value, Buffer buffer) throws IOException
IOExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.