@@ -0,0 +1,1522 @@
+package Feeds;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport org.apache.http.HttpEntity;%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.client.ClientProtocolException;%0Aimport org.apache.http.client.HttpClient;%0Aimport org.apache.http.client.methods.HttpGet;%0Aimport org.apache.http.impl.client.DefaultHttpClient;%0Aimport java.util.ArrayList;%0A%0Apublic class ThreatFeedsFetcher %7B%0A%0A%09public  ArrayList%3CString%3E maliciousIPs = new ArrayList%3CString%3E();%0A%0A%0A%09public  ArrayList%3CString%3E FeedsFetchers(String url,String type) %7B%0A%0A%09%09String IP_container;// space delimited ip list%0A%0A%09%09try %7B%0A%0A%09%09%09HttpClient client = new DefaultHttpClient();%0A%0A%09%09%09HttpGet request = new HttpGet(url);%0A%0A%09%09%09HttpResponse Response = client.execute(request);%0A%0A%09%09%09HttpEntity entity = Response.getEntity();%0A%0A%09%09%09System.out.println(%22----------------------------------------%22);%0A%09%09%09System.out.println(Response.getStatusLine());%0A%09%09%09System.out.println(type+%22%5Cn----------------------------------------%22);%0A%0A%09%09%09BufferedReader breader;%0A%0A%09%09%09try %7B%0A%0A%09%09%09%09breader = new BufferedReader(new InputStreamReader((Response.getEntity().getContent())));%0A%09%09%09%09if (entity != null) %7B%0A%09%09%09%09%09while ((IP_container = breader.readLine()) != null) %7B%0A%0A%09%09%09%09%09%09maliciousIPs.add(IP_container);%0A%0A%09%09%09%09%09%7D%0A%0A%09%09%09%09%09breader.close();%0A%0A%09%09%09%09%7D%0A%09%09%09%7D catch (IOException e) %7B%0A%09%09%09%09e.printStackTrace();%0A%0A%09%09%09%7D%0A%0A%09%09%7D catch (ClientProtocolException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09return maliciousIPs;%0A%09%7D%0A%0A%7D%0A

Create ThreatFeedsFetcher.java