X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Ffactory%2FOFPMessageFactory.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Ffactory%2FOFPMessageFactory.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=3855c2bb7b8e38c1ff3d6469003ce89f2a80c14e;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/factory/OFPMessageFactory.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/factory/OFPMessageFactory.java deleted file mode 100644 index 3855c2bb..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/factory/OFPMessageFactory.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.openflow.codec.protocol.factory; - -import java.util.List; - -import org.openflow.codec.io.IDataBuffer; -import org.openflow.codec.protocol.OFPMessage; -import org.openflow.codec.protocol.OFPType; - -/** - * The interface to factories used for retrieving OFPMessage instances. All - * methods are expected to be thread-safe. - * - * @author David Erickson (daviderickson@cs.stanford.edu) - */ -public interface OFPMessageFactory { - /** - * Retrieves an OFPMessage instance corresponding to the specified OFPType - * - * @param t - * the type of the OFPMessage to be retrieved - * @return an OFPMessage instance - */ - public OFPMessage getMessage(OFPType t); - - /** - * Attempts to parse and return all OFMessages contained in the given - * DataBuffer, beginning at the DataBuffer's position, and ending at the - * DataBuffer's limit. - * - * @param data - * the DataBuffer to parse for an OpenFlow message - * @return a list of OFPMessage instances - */ - public List parseMessages(IDataBuffer data); - - /** - * Attempts to parse and return all OFMessages contained in the given - * DataBuffer, beginning at the DataBuffer's position, and ending at the - * DataBuffer's limit. - * - * @param data - * the DataBuffer to parse for an OpenFlow message - * @param limit - * the maximum number of messages to return, 0 means no limit - * @return a list of OFPMessage instances - */ - public List parseMessages(IDataBuffer data, int limit); - - /** - * Retrieves an OFPActionFactory - * - * @return an OFPActionFactory - */ - public OFPActionFactory getActionFactory(); -}