Implementation of the OSGi component - PacketHandler

The second part of our implementation is the PacketHandler, which receives packet-in events. (The class that you configured through Activator.) To this end, we implemented the PacketHandler class by creating the PacketHandler.java file in the directory:

    001 package ca.inverse.odlpf;     002       003 import java.net.InetAddress;     004 import java.net.URL;     005 import java.net.UnknownHostException;     006 import java.net.HttpURLConnection;     007 import java.io.DataOutputStream;     008 import javax.net.ssl.HostnameVerifier;     009 import javax.net.ssl.HttpsURLConnection;     010 import javax.net.ssl.SSLContext;     011 import javax.net.ssl.SSLSession;     012 import javax.net.ssl.TrustManager;  013 import javax.net.ssl.X509TrustManager; ...

Get Learning OpenDaylight now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.