blob: 140182b9328f82f0fffff5588453e0c20d9f6667 [file] [log] [blame]
Andreas Wundsam40e14f72013-05-06 14:49:08 -07001package org.openflow.protocol;
2
Andreas Wundsam27303462013-07-16 12:52:35 -07003import org.jboss.netty.buffer.ChannelBuffer;
4
Andreas Wundsam40e14f72013-05-06 14:49:08 -07005/**
Andreas Wundsama94273b2013-08-01 22:11:33 -07006 * Base interface of all OpenFlow objects (e.g., messages, actions, stats, etc.)
Andreas Wundsam40e14f72013-05-06 14:49:08 -07007 *
Andreas Wundsama94273b2013-08-01 22:11:33 -07008 * All objects have a length and can be read and written from a buffer. When
9 * writing, the length field is dynamically updated, so it need not be managed
10 * manually. However, you can override the auto calculated length with
11 * overrideLength() call, if, for example, you want to intentionally create
12 * malformed packets, for example, for negative testing.
Andreas Wundsam40e14f72013-05-06 14:49:08 -070013 */
14
Andreas Wundsam40e14f72013-05-06 14:49:08 -070015public interface OFObject {
Andreas Wundsam27303462013-07-16 12:52:35 -070016 void writeTo(ChannelBuffer bb);
Andreas Wundsam40e14f72013-05-06 14:49:08 -070017}