Interface ParameterSerializer
-
- All Known Implementing Classes:
CapabilityParameterParser
public interface ParameterSerializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
serializeExtendedParameter(BgpParameters parameter, io.netty.buffer.ByteBuf output)
Serialize parameter using Extended Optional Parameters Length encoding.void
serializeParameter(BgpParameters parameter, io.netty.buffer.ByteBuf output)
Serialize parameter using RFC4271 encoding.
-
-
-
Method Detail
-
serializeParameter
void serializeParameter(BgpParameters parameter, io.netty.buffer.ByteBuf output) throws ParameterLengthOverflowException
Serialize parameter using RFC4271 encoding.- Parameters:
parameter
- Parameter to serializeoutput
- Output buffer- Throws:
NullPointerException
- if any argument is nullParameterLengthOverflowException
- when the parameter does not fit into 255 bytes
-
serializeExtendedParameter
void serializeExtendedParameter(BgpParameters parameter, io.netty.buffer.ByteBuf output)
Serialize parameter using Extended Optional Parameters Length encoding.- Parameters:
parameter
- Parameter to serializeoutput
- Output buffer- Throws:
NullPointerException
- if any argument is null
-
-