Class CapabilityParameterParser
java.lang.Object
org.opendaylight.protocol.bgp.parser.impl.message.open.CapabilityParameterParser
- All Implemented Interfaces:
ParameterParser
,ParameterSerializer
public final class CapabilityParameterParser
extends Object
implements ParameterParser, ParameterSerializer
Parser for BGP Capability Parameter.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseParameter
(io.netty.buffer.ByteBuf buffer) 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.
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
CapabilityParameterParser
-
-
Method Details
-
parseParameter
public BgpParameters parseParameter(io.netty.buffer.ByteBuf buffer) throws BGPParsingException, BGPDocumentedException - Specified by:
parseParameter
in interfaceParameterParser
- Throws:
BGPParsingException
BGPDocumentedException
-
serializeParameter
public void serializeParameter(BgpParameters parameter, io.netty.buffer.ByteBuf output) throws ParameterLengthOverflowException Description copied from interface:ParameterSerializer
Serialize parameter using RFC4271 encoding.- Specified by:
serializeParameter
in interfaceParameterSerializer
- Parameters:
parameter
- Parameter to serializeoutput
- Output buffer- Throws:
ParameterLengthOverflowException
- when the parameter does not fit into 255 bytes
-
serializeExtendedParameter
Description copied from interface:ParameterSerializer
Serialize parameter using Extended Optional Parameters Length encoding.- Specified by:
serializeExtendedParameter
in interfaceParameterSerializer
- Parameters:
parameter
- Parameter to serializeoutput
- Output buffer
-