Mass replace CRLF->LF
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / connection / MessageListenerWrapper.java
index 51ab4b820acc0c3dfa55012a1e79bcfd9a925e4b..ec415b389a9d54548ada7b21f2a9795842022b9b 100644 (file)
@@ -1,50 +1,50 @@
-/*\r
- * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.openflowjava.protocol.impl.core.connection;\r
-\r
-import io.netty.util.concurrent.Future;\r
-import io.netty.util.concurrent.GenericFutureListener;\r
-\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;\r
-\r
-/**\r
- * Wraps outgoing message and includes listener attached to this message. This object\r
- * is sent to OFEncoder. When OFEncoder fails to serialize the message,\r
- * listener is filled with exception. The exception is then delegated to upper ODL layers. \r
- * @author michal.polkorab\r
- */\r
-public class MessageListenerWrapper {\r
-\r
-    private OfHeader msg;\r
-    private GenericFutureListener<Future<Void>> listener;\r
-\r
-    /**\r
-     * @param msg outgoing message\r
-     * @param listener listener attached to channel.write(msg) Future\r
-     */\r
-    public MessageListenerWrapper(Object msg, GenericFutureListener<Future<Void>> listener) {\r
-        this.msg = (OfHeader) msg;\r
-        this.listener = listener;\r
-    }\r
-\r
-    /**\r
-     * @return outgoing message (downstream)\r
-     */\r
-    public OfHeader getMsg() {\r
-        return msg;\r
-    }\r
-\r
-    \r
-    /**\r
-     * @return listener listening on message sending success / failure\r
-     */\r
-    public GenericFutureListener<Future<Void>> getListener() {\r
-        return listener;\r
-    }\r
+/*
+ * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.openflowjava.protocol.impl.core.connection;
+
+import io.netty.util.concurrent.Future;
+import io.netty.util.concurrent.GenericFutureListener;
+
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
+
+/**
+ * Wraps outgoing message and includes listener attached to this message. This object
+ * is sent to OFEncoder. When OFEncoder fails to serialize the message,
+ * listener is filled with exception. The exception is then delegated to upper ODL layers. 
+ * @author michal.polkorab
+ */
+public class MessageListenerWrapper {
+
+    private OfHeader msg;
+    private GenericFutureListener<Future<Void>> listener;
+
+    /**
+     * @param msg outgoing message
+     * @param listener listener attached to channel.write(msg) Future
+     */
+    public MessageListenerWrapper(Object msg, GenericFutureListener<Future<Void>> listener) {
+        this.msg = (OfHeader) msg;
+        this.listener = listener;
+    }
+
+    /**
+     * @return outgoing message (downstream)
+     */
+    public OfHeader getMsg() {
+        return msg;
+    }
+
+    
+    /**
+     * @return listener listening on message sending success / failure
+     */
+    public GenericFutureListener<Future<Void>> getListener() {
+        return listener;
+    }
 }
\ No newline at end of file