import io.netty.buffer.ByteBuf;
import org.opendaylight.openflowjava.protocol.api.extensibility.HeaderDeserializer;
+import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry;
*
* @author michal.polkorab
*/
-public abstract class AbstractOxmMatchEntryDeserializer implements HeaderDeserializer<MatchEntry> {
+public abstract class AbstractOxmMatchEntryDeserializer
+ implements HeaderDeserializer<MatchEntry>, OFDeserializer<MatchEntry> {
@Override
- public MatchEntry deserializeHeader(ByteBuf input) {
+ public MatchEntry deserializeHeader(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
return builder.build();
}
* @param input input bytebuf
* @return MatchEntriesBuilder which can be filled with MatchEntry augmentation
*/
- protected MatchEntryBuilder processHeader(Class<? extends OxmClassBase> oxmClass,
- Class<? extends MatchField> oxmField, ByteBuf input) {
+ protected MatchEntryBuilder processHeader(final Class<? extends OxmClassBase> oxmClass,
+ final Class<? extends MatchField> oxmField, final ByteBuf input) {
MatchEntryBuilder builder = new MatchEntryBuilder();
builder.setOxmClass(oxmClass);
// skip oxm_class (provided)
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.ArpOp;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmArpOpDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OxmArpOpDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addArpOpValue(input, builder);
return builder.build();
}
- private static void addArpOpValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addArpOpValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new ArpOpCaseBuilder()
.setArpOp(new ArpOpBuilder().setOpCode(readUint16(input)).build())
.build());
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.ArpSha;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmArpShaDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmArpShaDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addArpShaValue(input, builder);
return builder.build();
}
- private static void addArpShaValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addArpShaValue(final ByteBuf input, final MatchEntryBuilder builder) {
ArpShaCaseBuilder caseBuilder = new ArpShaCaseBuilder();
ArpShaBuilder shaBuilder = new ArpShaBuilder();
shaBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.ArpSpa;
*
* @author michal.polkorab
*/
-public class OxmArpSpaDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmArpSpaDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.ArpTha;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmArpThaDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmArpThaDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addArpThaValue(input, builder);
return builder.build();
}
- private static void addArpThaValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addArpThaValue(final ByteBuf input, final MatchEntryBuilder builder) {
ArpThaCaseBuilder caseBuilder = new ArpThaCaseBuilder();
ArpThaBuilder thaBuilder = new ArpThaBuilder();
thaBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.ArpTpa;
*
* @author michal.polkorab
*/
-public class OxmArpTpaDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmArpTpaDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.EthDst;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmEthDstDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmEthDstDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addEthDstValue(input, builder);
return builder.build();
}
- private static void addEthDstValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addEthDstValue(final ByteBuf input, final MatchEntryBuilder builder) {
EthDstCaseBuilder caseBuilder = new EthDstCaseBuilder();
EthDstBuilder ethBuilder = new EthDstBuilder();
ethBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.EthSrc;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmEthSrcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmEthSrcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addEthSrcValue(input, builder);
return builder.build();
}
- private static void addEthSrcValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addEthSrcValue(final ByteBuf input, final MatchEntryBuilder builder) {
EthSrcCaseBuilder caseBuilder = new EthSrcCaseBuilder();
EthSrcBuilder ethBuilder = new EthSrcBuilder();
ethBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
protected Class<? extends OxmClassBase> getOxmClass() {
return OpenflowBasicClass.class;
}
-
}
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.EtherType;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.EthType;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmEthTypeDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmEthTypeDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addEthTypeValue(input, builder);
return builder.build();
}
- private static void addEthTypeValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addEthTypeValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new EthTypeCaseBuilder()
.setEthType(new EthTypeBuilder().setEthType(new EtherType(ByteBufUtils.readUint16(input))).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Icmpv4Code;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIcmpv4CodeDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIcmpv4CodeDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new Icmpv4CodeCaseBuilder()
.setIcmpv4Code(new Icmpv4CodeBuilder().setIcmpv4Code(readUint8(input)).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Icmpv4Type;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIcmpv4TypeDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIcmpv4TypeDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new Icmpv4TypeCaseBuilder()
.setIcmpv4Type(new Icmpv4TypeBuilder().setIcmpv4Type(readUint8(input)).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Icmpv6Code;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIcmpv6CodeDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIcmpv6CodeDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new Icmpv6CodeCaseBuilder()
.setIcmpv6Code(new Icmpv6CodeBuilder().setIcmpv6Code(readUint8(input)).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Icmpv6Type;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIcmpv6TypeDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIcmpv6TypeDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new Icmpv6TypeCaseBuilder()
.setIcmpv6Type(new Icmpv6TypeBuilder().setIcmpv6Type(readUint8(input)).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint32;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.InPhyPort;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmInPhyPortDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmInPhyPortDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addInPhyPortValue(input, builder);
return builder.build();
}
- private static void addInPhyPortValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addInPhyPortValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new InPhyPortCaseBuilder()
.setInPhyPort(new InPhyPortBuilder().setPortNumber(new PortNumber(readUint32(input))).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint32;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.InPort;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmInPortDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmInPortDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addInPortValue(input, builder);
return builder.build();
}
- private static void addInPortValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addInPortValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new InPortCaseBuilder()
.setInPort(new InPortBuilder().setPortNumber(new PortNumber(readUint32(input))).build())
.build());
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Dscp;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.IpDscp;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmIpDscpDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpDscpDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpDscpValue(input, builder);
return builder.build();
}
- private static void addIpDscpValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpDscpValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new IpDscpCaseBuilder()
.setIpDscp(new IpDscpBuilder().setDscp(new Dscp(ByteBufUtils.readUint8(input))).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.IpEcn;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIpEcnDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpEcnDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpEcnValue(input, builder);
return builder.build();
}
- private static void addIpEcnValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpEcnValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new IpEcnCaseBuilder()
.setIpEcn(new IpEcnBuilder().setEcn(readUint8(input)).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.IpProto;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIpProtoDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpProtoDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpProtoValue(input, builder);
return builder.build();
}
- private static void addIpProtoValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpProtoValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new IpProtoCaseBuilder()
.setIpProto(new IpProtoBuilder().setProtocolNumber(readUint8(input)).build())
.build());
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv4Dst;
*
* @author michal.polkorab
*/
-public class OxmIpv4DstDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpv4DstDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv4Src;
*
* @author michal.polkorab
*/
-public class OxmIpv4SrcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpv4SrcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6Dst;
*
* @author michal.polkorab
*/
-public class OxmIpv6DstDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpv6DstDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.Ipv6ExthdrFlags;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6Exthdr;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmIpv6ExtHdrDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OxmIpv6ExtHdrDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpv6ExtHdrValue(input, builder);
return builder.build();
}
- private static void addIpv6ExtHdrValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpv6ExtHdrValue(final ByteBuf input, final MatchEntryBuilder builder) {
Ipv6ExthdrCaseBuilder caseBuilder = new Ipv6ExthdrCaseBuilder();
Ipv6ExthdrBuilder extHdrBuilder = new Ipv6ExthdrBuilder();
extHdrBuilder.setPseudoField(convertPseudofields(input));
builder.setMatchEntryValue(caseBuilder.build());
}
- private static Ipv6ExthdrFlags convertPseudofields(ByteBuf input) {
+ private static Ipv6ExthdrFlags convertPseudofields(final ByteBuf input) {
int bitmap = input.readUnsignedShort();
final Boolean nonext = (bitmap & 1 << 0) != 0;
final Boolean esp = (bitmap & 1 << 1) != 0;
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint32;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6FlowLabel;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6Flabel;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmIpv6FlabelDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OxmIpv6FlabelDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpv6FlabelValue(input, builder);
return builder.build();
}
- private static void addIpv6FlabelValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpv6FlabelValue(final ByteBuf input, final MatchEntryBuilder builder) {
Ipv6FlabelCaseBuilder caseBuilder = new Ipv6FlabelCaseBuilder();
Ipv6FlabelBuilder labelBuilder = new Ipv6FlabelBuilder();
labelBuilder.setIpv6Flabel(new Ipv6FlowLabel(readUint32(input)));
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6NdSll;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIpv6NdSllDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OxmIpv6NdSllDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpv6NdSllValue(input, builder);
return builder.build();
}
- private static void addIpv6NdSllValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpv6NdSllValue(final ByteBuf input, final MatchEntryBuilder builder) {
Ipv6NdSllCaseBuilder caseBuilder = new Ipv6NdSllCaseBuilder();
Ipv6NdSllBuilder ndBuilder = new Ipv6NdSllBuilder();
ndBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6NdTarget;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
*
* @author michal.polkorab
*/
-public class OxmIpv6NdTargetDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpv6NdTargetDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6NdTll;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmIpv6NdTllDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpv6NdTllDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addIpv6NdTllValue(input, builder);
return builder.build();
}
- private static void addIpv6NdTllValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addIpv6NdTllValue(final ByteBuf input, final MatchEntryBuilder builder) {
Ipv6NdTllCaseBuilder caseBuilder = new Ipv6NdTllCaseBuilder();
Ipv6NdTllBuilder ndBuilder = new Ipv6NdTllBuilder();
ndBuilder.setMacAddress(OxmDeserializerHelper.convertMacAddress(input));
protected Class<? extends OxmClassBase> getOxmClass() {
return OpenflowBasicClass.class;
}
-
}
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.openflowjava.util.ByteBufUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Ipv6Src;
*
* @author michal.polkorab
*/
-public class OxmIpv6SrcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmIpv6SrcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.Metadata;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmMetadataDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmMetadataDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addMetadataValue(input, builder);
return builder.build();
}
- private static void addMetadataValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addMetadataValue(final ByteBuf input, final MatchEntryBuilder builder) {
final MetadataCaseBuilder caseBuilder = new MetadataCaseBuilder();
MetadataBuilder metadataBuilder = new MetadataBuilder();
byte[] metadataBytes = new byte[Long.BYTES];
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MplsBos;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmMplsBosDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmMplsBosDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addMplsBosValue(input, builder);
return builder.build();
}
- private static void addMplsBosValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addMplsBosValue(final ByteBuf input, final MatchEntryBuilder builder) {
MplsBosCaseBuilder caseBuilder = new MplsBosCaseBuilder();
MplsBosBuilder bosBuilder = new MplsBosBuilder();
if (input.readUnsignedByte() != 0) {
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint32;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MplsLabel;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmMplsLabelDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmMplsLabelDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addMplsLabelValue(input, builder);
return builder.build();
}
- private static void addMplsLabelValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addMplsLabelValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new MplsLabelCaseBuilder()
.setMplsLabel(new MplsLabelBuilder().setMplsLabel(readUint32(input)).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MplsTc;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmMplsTcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmMplsTcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addMplsTcValue(input, builder);
return builder.build();
}
- private static void addMplsTcValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addMplsTcValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new MplsTcCaseBuilder()
.setMplsTc(new MplsTcBuilder().setTc(readUint8(input)).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint32;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.PacketTypeCaseBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.packet.type._case.PacketTypeBuilder;
-public class OxmPacketTypeDeserializer extends AbstractOxmMatchEntryDeserializer implements OFDeserializer<MatchEntry> {
+public class OxmPacketTypeDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
protected Class<? extends MatchField> getOxmField() {
return PacketType.class;
}
@Override
- public MatchEntry deserialize(ByteBuf message) {
+ public MatchEntry deserialize(final ByteBuf message) {
final MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), message);
PacketTypeCaseBuilder caseBuilder = new PacketTypeCaseBuilder();
PacketTypeBuilder packetTypeBuilder = new PacketTypeBuilder();
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmPbbIsidDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmPbbIsidDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addPbbIsidValue(input, builder);
return builder.build();
}
- private static void addPbbIsidValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addPbbIsidValue(final ByteBuf input, final MatchEntryBuilder builder) {
PbbIsidCaseBuilder caseBuilder = new PbbIsidCaseBuilder();
PbbIsidBuilder isidBuilder = new PbbIsidBuilder();
Integer isid = input.readUnsignedMedium();
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmSctpDstDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmSctpDstDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addSctpDstValue(input, builder);
return builder.build();
}
- private static void addSctpDstValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addSctpDstValue(final ByteBuf input, final MatchEntryBuilder builder) {
builder.setMatchEntryValue(new SctpDstCaseBuilder()
.setSctpDst(new SctpDstBuilder().setPort(new PortNumber(readUint16(input))).build())
.build());
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmSctpSrcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmSctpSrcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new SctpSrcCaseBuilder()
.setSctpSrc(new SctpSrcBuilder().setPort(new PortNumber(readUint16(input))).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmTcpDstDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmTcpDstDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new TcpDstCaseBuilder()
.setTcpDst(new TcpDstBuilder().setPort(new PortNumber(readUint16(input))).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmTcpSrcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmTcpSrcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new TcpSrcCaseBuilder()
.setTcpSrc(new TcpSrcBuilder().setPort(new PortNumber(readUint16(input))).build())
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
*
* @author michal.polkorab
*/
-public class OxmTunnelIdDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmTunnelIdDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addTunnelIdValue(input, builder);
return builder.build();
}
- private static void addTunnelIdValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addTunnelIdValue(final ByteBuf input, final MatchEntryBuilder builder) {
final TunnelIdCaseBuilder caseBuilder = new TunnelIdCaseBuilder();
TunnelIdBuilder tunnelIdBuilder = new TunnelIdBuilder();
byte[] metadataBytes = new byte[Long.BYTES];
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmUdpDstDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OxmUdpDstDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new UdpDstCaseBuilder()
.setUdpDst(new UdpDstBuilder().setPort(new PortNumber(readUint16(input))).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
*
* @author michal.polkorab
*/
-public class OxmUdpSrcDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmUdpSrcDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new UdpSrcCaseBuilder()
.setUdpSrc(new UdpSrcBuilder().setPort(new PortNumber(readUint16(input))).build())
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint8;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
*
* @author michal.polkorab
*/
-public class OxmVlanPcpDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
-
+public class OxmVlanPcpDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
return processHeader(getOxmClass(), getOxmField(), input)
.setMatchEntryValue(new VlanPcpCaseBuilder()
.setVlanPcp(new VlanPcpBuilder().setVlanPcp(readUint8(input)).build())
package org.opendaylight.openflowjava.protocol.impl.deserialization.match;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OpenflowBasicClass;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
*
* @author michal.polkorab
*/
-public class OxmVlanVidDeserializer extends AbstractOxmMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OxmVlanVidDeserializer extends AbstractOxmMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder builder = processHeader(getOxmClass(), getOxmField(), input);
addVlanVidValue(input, builder);
return builder.build();
}
- private static void addVlanVidValue(ByteBuf input, MatchEntryBuilder builder) {
+ private static void addVlanVidValue(final ByteBuf input, final MatchEntryBuilder builder) {
final VlanVidCaseBuilder caseBuilder = new VlanVidCaseBuilder();
VlanVidBuilder vlanBuilder = new VlanVidBuilder();
int vidEntryValue = input.readUnsignedShort();
import static org.opendaylight.yangtools.yang.common.netty.ByteBufUtils.readUint16;
import io.netty.buffer.ByteBuf;
-import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.approved.extensions.rev160802.TcpFlags;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.approved.extensions.rev160802.TcpFlagsContainerBuilder;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.approved.extensions.rev160802.oxm.container.match.entry.value.experimenter.id._case.TcpFlagsBuilder;
/**
* Created by Anil Vishnoi (avishnoi@Brocade.com) on 7/26/16.
*/
-public class OnfOxmTcpFlagsDeserializer extends AbstractOxmExperimenterMatchEntryDeserializer
- implements OFDeserializer<MatchEntry> {
+public class OnfOxmTcpFlagsDeserializer extends AbstractOxmExperimenterMatchEntryDeserializer {
@Override
- public MatchEntry deserialize(ByteBuf input) {
+ public MatchEntry deserialize(final ByteBuf input) {
MatchEntryBuilder matchEntryBuilder = new MatchEntryBuilder(deserializeHeader(input));
ExperimenterIdCaseBuilder expCaseBuilder = createExperimenterIdCase(matchEntryBuilder, input);
addTcpFlagsAugmentation(input, expCaseBuilder, matchEntryBuilder.isHasMask());
}
- private static void addTcpFlagsAugmentation(ByteBuf input, ExperimenterIdCaseBuilder expCaseBuilder,
- boolean hasMask) {
+ private static void addTcpFlagsAugmentation(final ByteBuf input, final ExperimenterIdCaseBuilder expCaseBuilder,
+ final boolean hasMask) {
TcpFlagsBuilder flagsBuilder = new TcpFlagsBuilder();
flagsBuilder.setFlags(readUint16(input));
if (hasMask) {