Interface ParameterSerializer
- All Known Implementing Classes:
CapabilityParameterParser
public interface ParameterSerializer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
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
Serialize parameter using Extended Optional Parameters Length encoding.- Parameters:
parameter
- Parameter to serializeoutput
- Output buffer- Throws:
NullPointerException
- if any argument is null
-