1 package org.onosproject.openflow.controller;
3 import org.jboss.netty.buffer.ChannelBuffer;
4 import org.projectfloodlight.openflow.protocol.OFMessage;
5 import org.projectfloodlight.openflow.protocol.OFType;
6 import org.projectfloodlight.openflow.protocol.OFVersion;
8 import com.google.common.hash.PrimitiveSink;
10 * Used to support for the third party privacy flow rule.
11 * it implements OFMessage interface to use exist adapter API.
13 public class ThirdPartyMessage implements OFMessage {
15 private final byte[] payLoad; //privacy flow rule
17 public ThirdPartyMessage(byte[] payLoad) {
18 this.payLoad = payLoad;
21 public byte[] payLoad() {
26 public void putTo(PrimitiveSink sink) {
27 // Do nothing here for now.
31 public OFVersion getVersion() {
32 // Do nothing here for now.
37 public OFType getType() {
38 // Do nothing here for now.
43 public long getXid() {
44 // Do nothing here for now.
49 public void writeTo(ChannelBuffer channelBuffer) {
50 // Do nothing here for now.
54 public Builder createBuilder() {
55 // Do nothing here for now.