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