X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflowj_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2FOFQueueGetConfigRequest.java;fp=third-party%2Fopenflowj_netty%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2FOFQueueGetConfigRequest.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=cbb4a3734b9bc6510362afa237b6121398d9e4cd;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflowj_netty/src/main/java/org/openflow/protocol/OFQueueGetConfigRequest.java b/third-party/openflowj_netty/src/main/java/org/openflow/protocol/OFQueueGetConfigRequest.java deleted file mode 100644 index cbb4a373..00000000 --- a/third-party/openflowj_netty/src/main/java/org/openflow/protocol/OFQueueGetConfigRequest.java +++ /dev/null @@ -1,95 +0,0 @@ -/** -* Copyright 2012, Andrew Ferguson, Brown University -* -* Licensed under the Apache License, Version 2.0 (the "License"); you may -* not use this file except in compliance with the License. You may obtain -* a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -* License for the specific language governing permissions and limitations -* under the License. -**/ - -package org.openflow.protocol; - -import org.jboss.netty.buffer.ChannelBuffer; -import org.openflow.util.U16; - -/** - * Represents an ofp_queue_get_config_request message - * @author Andrew Ferguson (adf@cs.brown.edu) - */ -public class OFQueueGetConfigRequest extends OFMessage { - public static int MINIMUM_LENGTH = 12; - - protected short portNumber; - - public OFQueueGetConfigRequest(short portNumber) { - super(); - this.type = OFType.QUEUE_GET_CONFIG_REQUEST; - this.length = U16.t(MINIMUM_LENGTH); - this.portNumber = portNumber; - } - - public OFQueueGetConfigRequest() { - this((short) 0); - } - - /** - * @return the portNumber - */ - public short getPortNumber() { - return portNumber; - } - - /** - * @param portNumber the portNumber to set - */ - public void setPortNumber(short portNumber) { - this.portNumber = portNumber; - } - - @Override - public void readFrom(ChannelBuffer data) { - super.readFrom(data); - this.portNumber = data.readShort(); - data.readShort(); // pad - } - - @Override - public void writeTo(ChannelBuffer data) { - super.writeTo(data); - data.writeShort(this.portNumber); - data.writeShort(0); // pad - } - - @Override - public int hashCode() { - final int prime = 347; - int result = super.hashCode(); - result = prime * result + portNumber; - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (!super.equals(obj)) { - return false; - } - if (!(obj instanceof OFQueueGetConfigRequest)) { - return false; - } - OFQueueGetConfigRequest other = (OFQueueGetConfigRequest) obj; - if (portNumber != other.portNumber) { - return false; - } - return true; - } -}