* @author michal.polkorab
*/
public class OF10SetDlDstActionSerializer extends AbstractActionSerializer {
+ public OF10SetDlDstActionSerializer() {
+ super(ActionConstants.SET_DL_DST_CODE, ActionConstants.LARGER_ACTION_LENGTH);
+ }
@Override
- public void serialize(final Action action, final ByteBuf outBuffer) {
- super.serialize(action, outBuffer);
- outBuffer.writeBytes(IetfYangUtil.INSTANCE.macAddressBytes(((SetDlDstCase) action.getActionChoice())
+ protected void serializeBody(final Action action, final ByteBuf outBuffer) {
+ outBuffer.writeBytes(IetfYangUtil.macAddressBytes(((SetDlDstCase) action.getActionChoice())
.getSetDlDstAction().getDlDstAddress()));
outBuffer.writeZero(ActionConstants.PADDING_IN_DL_ADDRESS_ACTION);
}
-
- @Override
- protected int getType() {
- return ActionConstants.SET_DL_DST_CODE;
- }
-
- @Override
- protected int getLength() {
- return ActionConstants.LARGER_ACTION_LENGTH;
- }
-
}