public abstract class AbstractFSFragmentHandler extends Object implements FlowspecTypeParser, FlowspecTypeSerializer
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DONT_FRAGMENT |
protected static int |
FIRST_FRAGMENT |
static int |
FRAGMENT_VALUE |
protected static int |
IS_A_FRAGMENT |
protected static int |
LAST_FRAGMENT |
| Constructor and Description |
|---|
AbstractFSFragmentHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Fragment |
parseFragment(byte fragment) |
protected List<Fragments> |
parseFragments(io.netty.buffer.ByteBuf nlri) |
FlowspecType |
parseType(io.netty.buffer.ByteBuf buffer) |
protected abstract byte |
serializeFragment(Fragment fragment) |
protected void |
serializeFragments(List<Fragments> fragments,
io.netty.buffer.ByteBuf nlriByteBuf) |
void |
serializeType(FlowspecType fsType,
io.netty.buffer.ByteBuf output) |
public static final int FRAGMENT_VALUE
protected static final int LAST_FRAGMENT
protected static final int FIRST_FRAGMENT
protected static final int IS_A_FRAGMENT
protected static final int DONT_FRAGMENT
protected abstract Fragment parseFragment(byte fragment)
protected abstract byte serializeFragment(Fragment fragment)
public void serializeType(FlowspecType fsType, io.netty.buffer.ByteBuf output)
serializeType in interface FlowspecTypeSerializerpublic FlowspecType parseType(io.netty.buffer.ByteBuf buffer)
parseType in interface FlowspecTypeParserprotected final void serializeFragments(List<Fragments> fragments, io.netty.buffer.ByteBuf nlriByteBuf)
Copyright © 2017 OpenDaylight. All rights reserved.