Added openflow-codec and openflowj_netty from openflowplugin
[openflowjava.git] / third-party / openflow-codec / src / main / java / org / openflow / codec / protocol / OFPMultipartRequest.java
1 package org.openflow.codec.protocol;
2
3 import org.openflow.codec.util.U16;
4
5 /**
6  * Represents an ofp_multipart_request message
7  *
8  * @author David Erickson (daviderickson@cs.stanford.edu)
9  */
10 public class OFPMultipartRequest extends OFPMultipartMessageBase {
11
12     /**
13      * Represents an ofp_multipart_request_flags
14      *
15      * @author AnilGujele
16      *
17      */
18     public enum OFMultipartRequestFlags {
19         REQ_MORE(1 << 0);
20
21         protected short type;
22
23         OFMultipartRequestFlags(int type) {
24             this.type = (short) type;
25         }
26
27         public short getTypeValue() {
28             return type;
29         }
30     }
31
32     public OFPMultipartRequest() {
33         super();
34         this.type = OFPType.MULTIPART_REQUEST;
35         this.length = U16.t(OFPMultipartMessageBase.MINIMUM_LENGTH);
36     }
37 }