-/*\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;\r
-\r
-import io.netty.channel.socket.nio.NioDatagramChannel;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public class UdpChannelInitializer extends ProtocolChannelInitializer<NioDatagramChannel> {\r
-\r
- @Override\r
- protected void initChannel(NioDatagramChannel ch) throws Exception {\r
- ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_HANDLER.name(),\r
- new OFDatagramPacketHandler(getSwitchConnectionHandler()));\r
- OFDatagramPacketDecoder ofDatagramPacketDecoder = new OFDatagramPacketDecoder();\r
- ofDatagramPacketDecoder.setDeserializationFactory(getDeserializationFactory());\r
- ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_DECODER.name(),\r
- ofDatagramPacketDecoder);\r
- OFDatagramPacketEncoder ofDatagramPacketEncoder = new OFDatagramPacketEncoder();\r
- ofDatagramPacketEncoder.setSerializationFactory(getSerializationFactory());\r
- ch.pipeline().addLast(PipelineHandlers.OF_ENCODER.name(), ofDatagramPacketEncoder);\r
-// connectionFacade.fireConnectionReadyNotification();\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;
+
+import io.netty.channel.socket.nio.NioDatagramChannel;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public class UdpChannelInitializer extends ProtocolChannelInitializer<NioDatagramChannel> {
+
+ @Override
+ protected void initChannel(NioDatagramChannel ch) throws Exception {
+ ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_HANDLER.name(),
+ new OFDatagramPacketHandler(getSwitchConnectionHandler()));
+ OFDatagramPacketDecoder ofDatagramPacketDecoder = new OFDatagramPacketDecoder();
+ ofDatagramPacketDecoder.setDeserializationFactory(getDeserializationFactory());
+ ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_DECODER.name(),
+ ofDatagramPacketDecoder);
+ OFDatagramPacketEncoder ofDatagramPacketEncoder = new OFDatagramPacketEncoder();
+ ofDatagramPacketEncoder.setSerializationFactory(getSerializationFactory());
+ ch.pipeline().addLast(PipelineHandlers.OF_ENCODER.name(), ofDatagramPacketEncoder);
+// connectionFacade.fireConnectionReadyNotification();
+ }
}
\ No newline at end of file