Class AbstractMessageRegistry
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.AbstractMessageRegistry
- All Implemented Interfaces:
- MessageRegistry
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract org.opendaylight.yangtools.binding.Notification<?> parseBody(int type, io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) org.opendaylight.yangtools.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf buffer, PeerSpecificParserConstraint constraint) Decode input buffer to BGP Message.final voidserializeMessage(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) Encode input BGP Message to output buffer.protected abstract voidserializeMessageImpl(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) 
- 
Constructor Details- 
AbstractMessageRegistrypublic AbstractMessageRegistry()
 
- 
- 
Method Details- 
parseBodyprotected abstract org.opendaylight.yangtools.binding.Notification<?> parseBody(int type, io.netty.buffer.ByteBuf body, int messageLength, PeerSpecificParserConstraint constraint) throws BGPDocumentedException - Throws:
- BGPDocumentedException
 
- 
serializeMessageImplprotected abstract void serializeMessageImpl(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) 
- 
parseMessagepublic org.opendaylight.yangtools.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf buffer, PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingException Description copied from interface:MessageRegistryDecode input buffer to BGP Message.- Specified by:
- parseMessagein interface- MessageRegistry
- Parameters:
- buffer- Input buffer with encoded message.
- constraint- Peer specific constraint.
- Returns:
- Parsed BGP message.
- Throws:
- BGPDocumentedException
- BGPParsingException
 
- 
serializeMessagepublic final void serializeMessage(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) Description copied from interface:MessageRegistryEncode input BGP Message to output buffer.- Specified by:
- serializeMessagein interface- MessageRegistry
- Parameters:
- message- Input BGP Message to be serialized.
- buffer- Output buffer where message is to be written.
 
 
-