2 * Copyright 2015 Open Networking Laboratory
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.onosproject.openflow.controller;
18 import org.jboss.netty.buffer.ChannelBuffer;
19 import org.projectfloodlight.openflow.protocol.OFMessage;
20 import org.projectfloodlight.openflow.protocol.OFType;
21 import org.projectfloodlight.openflow.protocol.OFVersion;
23 import com.google.common.hash.PrimitiveSink;
25 * Used to support for the third party privacy flow rule.
26 * it implements OFMessage interface to use exist adapter API.
28 public class ThirdPartyMessage implements OFMessage {
30 private final byte[] payLoad; //privacy flow rule
32 public ThirdPartyMessage(byte[] payLoad) {
33 this.payLoad = payLoad;
36 public byte[] payLoad() {
41 public void putTo(PrimitiveSink sink) {
42 // Do nothing here for now.
46 public OFVersion getVersion() {
47 // Do nothing here for now.
52 public OFType getType() {
53 // Do nothing here for now.
58 public long getXid() {
59 // Do nothing here for now.
64 public void writeTo(ChannelBuffer channelBuffer) {
65 // Do nothing here for now.
69 public Builder createBuilder() {
70 // Do nothing here for now.