public class BGPMessageParserMock extends Object implements org.opendaylight.protocol.bgp.parser.spi.MessageRegistry
MessageRegistry. It implements the required interface by having two internal maps,
each used in one of the methods. It looks up the key provided to the method and returns whatever value is stored in
the map.| Constructor and Description |
|---|
BGPMessageParserMock(Map<io.netty.buffer.ByteBuf,org.opendaylight.yangtools.yang.binding.Notification> messages)
Creates a new BGPMessageParserMock with given messages.
|
| Modifier and Type | Method and Description |
|---|---|
org.opendaylight.yangtools.yang.binding.Notification |
parseMessage(io.netty.buffer.ByteBuf buffer) |
void |
serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf buffer) |
public BGPMessageParserMock(Map<io.netty.buffer.ByteBuf,org.opendaylight.yangtools.yang.binding.Notification> messages)
messages - represents a new map of ByteBuf and Notificationpublic org.opendaylight.yangtools.yang.binding.Notification parseMessage(io.netty.buffer.ByteBuf buffer)
throws org.opendaylight.protocol.bgp.parser.BGPParsingException,
org.opendaylight.protocol.bgp.parser.BGPDocumentedException
parseMessage in interface org.opendaylight.protocol.bgp.parser.spi.MessageRegistryorg.opendaylight.protocol.bgp.parser.BGPParsingExceptionorg.opendaylight.protocol.bgp.parser.BGPDocumentedExceptionpublic void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification msg,
io.netty.buffer.ByteBuf buffer)
serializeMessage in interface org.opendaylight.protocol.bgp.parser.spi.MessageRegistryCopyright © 2016. All rights reserved.