2 * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowjava.protocol.api.extensibility;
10 import org.opendaylight.yangtools.yang.binding.DataObject;
12 import io.netty.buffer.ByteBuf;
15 * Does only-header serialization (such as oxm_ids, action_ids, instruction_ids)
16 * @author michal.polkorab
17 * @param <SERIALIZER_TYPE>
19 public interface HeaderSerializer<SERIALIZER_TYPE extends DataObject> extends OFGeneralSerializer {
22 * Serializes object headers (e.g. for Multipart message - Table Features)
23 * @param input object whose headers should be serialized
24 * @param outBuffer output buffer
26 void serializeHeader(SERIALIZER_TYPE input, ByteBuf outBuffer);