594f3d024539a330e95838d1f786b8a074e5c741
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / extensibility / HeaderDeserializer.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 io.netty.buffer.ByteBuf;\r
11 \r
12 import org.opendaylight.yangtools.yang.binding.DataObject;\r
13 \r
14 /**\r
15  * @author michal.polkorab\r
16  * @param <E> \r
17  */\r
18 public interface HeaderDeserializer<E extends DataObject> extends OFGeneralDeserializer {\r
19 \r
20     /**\r
21      * Deserializes byte message headers\r
22      * \r
23      * @param rawMessage message as bytes in ByteBuf\r
24      * @return POJO/DTO\r
25      */\r
26     E deserializeHeader(ByteBuf rawMessage);\r
27 }\r