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
Fields Modifier and Type Field Description static int
TYPE
-
Constructor Summary
Constructors Constructor Description CapabilityParameterParser(CapabilityRegistry reg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BgpParameters
parseParameter(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 Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CapabilityParameterParser
public CapabilityParameterParser(CapabilityRegistry reg)
-
-
Method Detail
-
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
public void serializeExtendedParameter(BgpParameters parameter, io.netty.buffer.ByteBuf output)
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
-
-