Class VlanVidEntrySerializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer<VlanId,org.opendaylight.yangtools.yang.common.Empty>
org.opendaylight.openflowplugin.impl.protocol.serialization.match.VlanVidEntrySerializer
- All Implemented Interfaces:
MatchEntrySerializer
public class VlanVidEntrySerializer
extends AbstractMatchEntrySerializer<VlanId,org.opendaylight.yangtools.yang.common.Empty>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
AbstractMatchEntrySerializer.ConstantHeaderWriter<E,
M>, AbstractMatchEntrySerializer.HeaderWriter<E, M> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected VlanId
extractEntry
(Match match) Extract the corresponding entry from a match.protected org.opendaylight.yangtools.yang.common.Empty
extractEntryMask
(VlanId entry) Extract the mask contained in an entry.protected void
serializeEntry
(VlanId entry, org.opendaylight.yangtools.yang.common.Empty mask, io.netty.buffer.ByteBuf outBuffer) Extract the corresponding entry from a match.Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
serializeIfPresent, writeIpv4Address, writeIpv4Prefix, writeIpv6Address, writeIpv6Prefix, writeMacAddress, writeMask
-
Constructor Details
-
VlanVidEntrySerializer
public VlanVidEntrySerializer()
-
-
Method Details
-
extractEntry
Description copied from class:AbstractMatchEntrySerializer
Extract the corresponding entry from a match.- Specified by:
extractEntry
in classAbstractMatchEntrySerializer<VlanId,
org.opendaylight.yangtools.yang.common.Empty> - Parameters:
match
- Openflow match- Returns:
- Entry, null if not present
-
extractEntryMask
Description copied from class:AbstractMatchEntrySerializer
Extract the mask contained in an entry.- Specified by:
extractEntryMask
in classAbstractMatchEntrySerializer<VlanId,
org.opendaylight.yangtools.yang.common.Empty> - Parameters:
entry
- entry to examine- Returns:
- Mask, null if not present
-
serializeEntry
protected void serializeEntry(VlanId entry, org.opendaylight.yangtools.yang.common.Empty mask, io.netty.buffer.ByteBuf outBuffer) Description copied from class:AbstractMatchEntrySerializer
Extract the corresponding entry from a match.- Specified by:
serializeEntry
in classAbstractMatchEntrySerializer<VlanId,
org.opendaylight.yangtools.yang.common.Empty> - Parameters:
entry
- entry to serializemask
- mask as extracted from entryoutBuffer
- output buffer
-