Fix checkstyle violations in openflow-protocol-api
[openflowplugin.git] / openflowjava / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / extensibility / HeaderSerializer.java
1 /*
2  * Copyright (c) 2013 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.openflowjava.protocol.api.extensibility;
9
10 import io.netty.buffer.ByteBuf;
11 import org.opendaylight.yangtools.yang.binding.DataContainer;
12
13 /**
14  * Does only-header serialization (such as oxm_ids, action_ids, instruction_ids).
15  *
16  * @author michal.polkorab
17  * @param <T> input message type
18  */
19 public interface HeaderSerializer<T extends DataContainer> extends OFGeneralSerializer {
20
21     /**
22      * Serializes object headers (e.g. for Multipart message - Table Features).
23      *
24      * @param input object whose headers should be serialized
25      * @param outBuffer output buffer
26      */
27     void serializeHeader(T input, ByteBuf outBuffer);
28 }