Class VersionMessageWrapper
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.core.VersionMessageWrapper
-
- Direct Known Subclasses:
VersionMessageUdpWrapper
public class VersionMessageWrapper extends Object
Wraps received messages (includes version).- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description VersionMessageWrapper(short version, io.netty.buffer.ByteBuf messageBuffer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.netty.buffer.ByteBuf
getMessageBuffer()
Returns the messageBuffer message received fromOFFrameDecoder
.short
getVersion()
Returns the version version decoded inOFVersionDetector
.
-
-
-
Constructor Detail
-
VersionMessageWrapper
public VersionMessageWrapper(short version, io.netty.buffer.ByteBuf messageBuffer)
Constructor.- Parameters:
version
- version decoded inOFVersionDetector
messageBuffer
- message received fromOFFrameDecoder
-
-
Method Detail
-
getVersion
public short getVersion()
Returns the version version decoded inOFVersionDetector
.- Returns:
- the version version decoded in
OFVersionDetector
-
getMessageBuffer
public io.netty.buffer.ByteBuf getMessageBuffer()
Returns the messageBuffer message received fromOFFrameDecoder
.- Returns:
- the messageBuffer message received from
OFFrameDecoder
-
-