* and is available at http://www.eclipse.org/legal/epl-v10.html\r
*/\r
\r
-package org.opendaylight.openflowjava.protocol.impl.deserialization.experimenters;\r
+package org.opendaylight.openflowjava.protocol.ext.deserialization;\r
\r
import io.netty.buffer.ByteBuf;\r
\r
import org.opendaylight.openflowjava.protocol.api.extensibility.HeaderDeserializer;\r
import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;\r
-import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
+import org.opendaylight.openflowjava.protocol.ext.util.ExtConstants;\r
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.ExperimenterAction;\r
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.ExperimenterActionBuilder;\r
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev130731.Experimenter;\r
* @author michal.polkorab\r
*\r
*/\r
-public class ExperimenterActionDeserializer implements OFDeserializer<Action>,\r
+public class OF10VendorActionDeserializer implements OFDeserializer<Action>,\r
HeaderDeserializer<Action> {\r
\r
@Override\r
public Action deserializeHeader(ByteBuf input) {\r
ActionBuilder builder = new ActionBuilder();\r
- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);\r
+ input.skipBytes(ExtConstants.SIZE_OF_SHORT_IN_BYTES);\r
builder.setType(Experimenter.class);\r
- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);\r
+ input.skipBytes(ExtConstants.SIZE_OF_SHORT_IN_BYTES);\r
ExperimenterActionBuilder expBuilder = new ExperimenterActionBuilder();\r
expBuilder.setExperimenter(input.readUnsignedInt());\r
builder.addAugmentation(ExperimenterAction.class, expBuilder.build());\r
@Override\r
public Action deserialize(ByteBuf input) {\r
ActionBuilder builder = new ActionBuilder();\r
- input.skipBytes(EncodeConstants.SIZE_OF_SHORT_IN_BYTES);\r
+ input.skipBytes(ExtConstants.SIZE_OF_SHORT_IN_BYTES);\r
builder.setType(Experimenter.class);\r
int length = input.readUnsignedShort();\r
// subtract experimenter header length\r
- length -= EncodeConstants.EXPERIMENTER_IDS_LENGTH;\r
+ length -= ExtConstants.EXPERIMENTER_IDS_LENGTH;\r
ExperimenterActionBuilder expBuilder = new ExperimenterActionBuilder();\r
expBuilder.setExperimenter(input.readUnsignedInt());\r
if (length > 0) {\r