{"action":"created","comment":{"url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/comments/41962365","id":41962365,"diff_hunk":"@@ -0,0 +1,68 @@\n+package com.webonise.util;\n+\n+import com.webonise.model.CacheRegion;\n+import com.webonise.model.Location;\n+import com.webonise.model.Sites;\n+import org.apache.commons.io.IOUtils;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Component;\n+\n+import java.io.File;\n+import java.io.FileOutputStream;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.net.HttpURLConnection;\n+import java.net.URL;\n+\n+@Component\n+public class DownloadWizard {\n+\n+    @Autowired\n+    private Sites sites;\n+    @Autowired\n+    private Location location;\n+\n+    private static final String DOWNLOAD_FOLDER =\n+            \"D:\\\\dev\\\\WorkSpace\\\\inFlight\\\\SampleCache\\\\src\\\\main\\\\resources\\\\images\\\\\";","path":"src/main/java/com/webonise/util/DownloadWizard.java","position":26,"original_position":26,"commit_id":"f0f5e29ff20dc065e7f8c7eea4a060ecaffd0fdb","original_commit_id":"f0f5e29ff20dc065e7f8c7eea4a060ecaffd0fdb","user":{"login":"dheerajwebonise","id":10460289,"avatar_url":"https://avatars.githubusercontent.com/u/10460289?v=3","gravatar_id":"","url":"https://api.github.com/users/dheerajwebonise","html_url":"https://github.com/dheerajwebonise","followers_url":"https://api.github.com/users/dheerajwebonise/followers","following_url":"https://api.github.com/users/dheerajwebonise/following{/other_user}","gists_url":"https://api.github.com/users/dheerajwebonise/gists{/gist_id}","starred_url":"https://api.github.com/users/dheerajwebonise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dheerajwebonise/subscriptions","organizations_url":"https://api.github.com/users/dheerajwebonise/orgs","repos_url":"https://api.github.com/users/dheerajwebonise/repos","events_url":"https://api.github.com/users/dheerajwebonise/events{/privacy}","received_events_url":"https://api.github.com/users/dheerajwebonise/received_events","type":"User","site_admin":false},"body":"Path should system independent. ","created_at":"2015-10-14T07:27:31Z","updated_at":"2015-10-14T07:27:31Z","html_url":"https://github.com/prasanna-webonise/myFlight/pull/1#discussion_r41962365","pull_request_url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/comments/41962365"},"html":{"href":"https://github.com/prasanna-webonise/myFlight/pull/1#discussion_r41962365"},"pull_request":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1","id":47244010,"html_url":"https://github.com/prasanna-webonise/myFlight/pull/1","diff_url":"https://github.com/prasanna-webonise/myFlight/pull/1.diff","patch_url":"https://github.com/prasanna-webonise/myFlight/pull/1.patch","issue_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/1","number":1,"state":"open","locked":false,"title":"First Commit","user":{"login":"prasanna-webonise","id":13114721,"avatar_url":"https://avatars.githubusercontent.com/u/13114721?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna-webonise","html_url":"https://github.com/prasanna-webonise","followers_url":"https://api.github.com/users/prasanna-webonise/followers","following_url":"https://api.github.com/users/prasanna-webonise/following{/other_user}","gists_url":"https://api.github.com/users/prasanna-webonise/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna-webonise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna-webonise/subscriptions","organizations_url":"https://api.github.com/users/prasanna-webonise/orgs","repos_url":"https://api.github.com/users/prasanna-webonise/repos","events_url":"https://api.github.com/users/prasanna-webonise/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna-webonise/received_events","type":"User","site_admin":false},"body":"Removed unwanted variables and imports \r\nMade changes in file names and made the suggested changes to the best of my knowledge. ","created_at":"2015-10-09T08:05:20Z","updated_at":"2015-10-14T07:27:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7eb74c2774677035b5773545f3eb4e3f5b119224","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1/commits","review_comments_url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1/comments","review_comment_url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/1/comments","statuses_url":"https://api.github.com/repos/prasanna-webonise/myFlight/statuses/f0f5e29ff20dc065e7f8c7eea4a060ecaffd0fdb","head":{"label":"prasanna-webonise:develop","ref":"develop","sha":"f0f5e29ff20dc065e7f8c7eea4a060ecaffd0fdb","user":{"login":"prasanna-webonise","id":13114721,"avatar_url":"https://avatars.githubusercontent.com/u/13114721?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna-webonise","html_url":"https://github.com/prasanna-webonise","followers_url":"https://api.github.com/users/prasanna-webonise/followers","following_url":"https://api.github.com/users/prasanna-webonise/following{/other_user}","gists_url":"https://api.github.com/users/prasanna-webonise/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna-webonise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna-webonise/subscriptions","organizations_url":"https://api.github.com/users/prasanna-webonise/orgs","repos_url":"https://api.github.com/users/prasanna-webonise/repos","events_url":"https://api.github.com/users/prasanna-webonise/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna-webonise/received_events","type":"User","site_admin":false},"repo":{"id":43941193,"name":"myFlight","full_name":"prasanna-webonise/myFlight","owner":{"login":"prasanna-webonise","id":13114721,"avatar_url":"https://avatars.githubusercontent.com/u/13114721?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna-webonise","html_url":"https://github.com/prasanna-webonise","followers_url":"https://api.github.com/users/prasanna-webonise/followers","following_url":"https://api.github.com/users/prasanna-webonise/following{/other_user}","gists_url":"https://api.github.com/users/prasanna-webonise/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna-webonise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna-webonise/subscriptions","organizations_url":"https://api.github.com/users/prasanna-webonise/orgs","repos_url":"https://api.github.com/users/prasanna-webonise/repos","events_url":"https://api.github.com/users/prasanna-webonise/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna-webonise/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prasanna-webonise/myFlight","description":"","fork":false,"url":"https://api.github.com/repos/prasanna-webonise/myFlight","forks_url":"https://api.github.com/repos/prasanna-webonise/myFlight/forks","keys_url":"https://api.github.com/repos/prasanna-webonise/myFlight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prasanna-webonise/myFlight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prasanna-webonise/myFlight/teams","hooks_url":"https://api.github.com/repos/prasanna-webonise/myFlight/hooks","issue_events_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/events{/number}","events_url":"https://api.github.com/repos/prasanna-webonise/myFlight/events","assignees_url":"https://api.github.com/repos/prasanna-webonise/myFlight/assignees{/user}","branches_url":"https://api.github.com/repos/prasanna-webonise/myFlight/branches{/branch}","tags_url":"https://api.github.com/repos/prasanna-webonise/myFlight/tags","blobs_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/refs{/sha}","trees_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prasanna-webonise/myFlight/statuses/{sha}","languages_url":"https://api.github.com/repos/prasanna-webonise/myFlight/languages","stargazers_url":"https://api.github.com/repos/prasanna-webonise/myFlight/stargazers","contributors_url":"https://api.github.com/repos/prasanna-webonise/myFlight/contributors","subscribers_url":"https://api.github.com/repos/prasanna-webonise/myFlight/subscribers","subscription_url":"https://api.github.com/repos/prasanna-webonise/myFlight/subscription","commits_url":"https://api.github.com/repos/prasanna-webonise/myFlight/commits{/sha}","git_commits_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/commits{/sha}","comments_url":"https://api.github.com/repos/prasanna-webonise/myFlight/comments{/number}","issue_comment_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/comments{/number}","contents_url":"https://api.github.com/repos/prasanna-webonise/myFlight/contents/{+path}","compare_url":"https://api.github.com/repos/prasanna-webonise/myFlight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prasanna-webonise/myFlight/merges","archive_url":"https://api.github.com/repos/prasanna-webonise/myFlight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prasanna-webonise/myFlight/downloads","issues_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues{/number}","pulls_url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls{/number}","milestones_url":"https://api.github.com/repos/prasanna-webonise/myFlight/milestones{/number}","notifications_url":"https://api.github.com/repos/prasanna-webonise/myFlight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prasanna-webonise/myFlight/labels{/name}","releases_url":"https://api.github.com/repos/prasanna-webonise/myFlight/releases{/id}","created_at":"2015-10-09T07:56:52Z","updated_at":"2015-10-09T07:56:52Z","pushed_at":"2015-10-14T06:42:18Z","git_url":"git://github.com/prasanna-webonise/myFlight.git","ssh_url":"git@github.com:prasanna-webonise/myFlight.git","clone_url":"https://github.com/prasanna-webonise/myFlight.git","svn_url":"https://github.com/prasanna-webonise/myFlight","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"prasanna-webonise:master","ref":"master","sha":"b3ab6ba16e470aea25512fb05de56006fad82245","user":{"login":"prasanna-webonise","id":13114721,"avatar_url":"https://avatars.githubusercontent.com/u/13114721?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna-webonise","html_url":"https://github.com/prasanna-webonise","followers_url":"https://api.github.com/users/prasanna-webonise/followers","following_url":"https://api.github.com/users/prasanna-webonise/following{/other_user}","gists_url":"https://api.github.com/users/prasanna-webonise/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna-webonise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna-webonise/subscriptions","organizations_url":"https://api.github.com/users/prasanna-webonise/orgs","repos_url":"https://api.github.com/users/prasanna-webonise/repos","events_url":"https://api.github.com/users/prasanna-webonise/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna-webonise/received_events","type":"User","site_admin":false},"repo":{"id":43941193,"name":"myFlight","full_name":"prasanna-webonise/myFlight","owner":{"login":"prasanna-webonise","id":13114721,"avatar_url":"https://avatars.githubusercontent.com/u/13114721?v=3","gravatar_id":"","url":"https://api.github.com/users/prasanna-webonise","html_url":"https://github.com/prasanna-webonise","followers_url":"https://api.github.com/users/prasanna-webonise/followers","following_url":"https://api.github.com/users/prasanna-webonise/following{/other_user}","gists_url":"https://api.github.com/users/prasanna-webonise/gists{/gist_id}","starred_url":"https://api.github.com/users/prasanna-webonise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasanna-webonise/subscriptions","organizations_url":"https://api.github.com/users/prasanna-webonise/orgs","repos_url":"https://api.github.com/users/prasanna-webonise/repos","events_url":"https://api.github.com/users/prasanna-webonise/events{/privacy}","received_events_url":"https://api.github.com/users/prasanna-webonise/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prasanna-webonise/myFlight","description":"","fork":false,"url":"https://api.github.com/repos/prasanna-webonise/myFlight","forks_url":"https://api.github.com/repos/prasanna-webonise/myFlight/forks","keys_url":"https://api.github.com/repos/prasanna-webonise/myFlight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prasanna-webonise/myFlight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prasanna-webonise/myFlight/teams","hooks_url":"https://api.github.com/repos/prasanna-webonise/myFlight/hooks","issue_events_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/events{/number}","events_url":"https://api.github.com/repos/prasanna-webonise/myFlight/events","assignees_url":"https://api.github.com/repos/prasanna-webonise/myFlight/assignees{/user}","branches_url":"https://api.github.com/repos/prasanna-webonise/myFlight/branches{/branch}","tags_url":"https://api.github.com/repos/prasanna-webonise/myFlight/tags","blobs_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/refs{/sha}","trees_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prasanna-webonise/myFlight/statuses/{sha}","languages_url":"https://api.github.com/repos/prasanna-webonise/myFlight/languages","stargazers_url":"https://api.github.com/repos/prasanna-webonise/myFlight/stargazers","contributors_url":"https://api.github.com/repos/prasanna-webonise/myFlight/contributors","subscribers_url":"https://api.github.com/repos/prasanna-webonise/myFlight/subscribers","subscription_url":"https://api.github.com/repos/prasanna-webonise/myFlight/subscription","commits_url":"https://api.github.com/repos/prasanna-webonise/myFlight/commits{/sha}","git_commits_url":"https://api.github.com/repos/prasanna-webonise/myFlight/git/commits{/sha}","comments_url":"https://api.github.com/repos/prasanna-webonise/myFlight/comments{/number}","issue_comment_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/comments{/number}","contents_url":"https://api.github.com/repos/prasanna-webonise/myFlight/contents/{+path}","compare_url":"https://api.github.com/repos/prasanna-webonise/myFlight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prasanna-webonise/myFlight/merges","archive_url":"https://api.github.com/repos/prasanna-webonise/myFlight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prasanna-webonise/myFlight/downloads","issues_url":"https://api.github.com/repos/prasanna-webonise/myFlight/issues{/number}","pulls_url":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls{/number}","milestones_url":"https://api.github.com/repos/prasanna-webonise/myFlight/milestones{/number}","notifications_url":"https://api.github.com/repos/prasanna-webonise/myFlight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prasanna-webonise/myFlight/labels{/name}","releases_url":"https://api.github.com/repos/prasanna-webonise/myFlight/releases{/id}","created_at":"2015-10-09T07:56:52Z","updated_at":"2015-10-09T07:56:52Z","pushed_at":"2015-10-14T06:42:18Z","git_url":"git://github.com/prasanna-webonise/myFlight.git","ssh_url":"git@github.com:prasanna-webonise/myFlight.git","clone_url":"https://github.com/prasanna-webonise/myFlight.git","svn_url":"https://github.com/prasanna-webonise/myFlight","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1"},"html":{"href":"https://github.com/prasanna-webonise/myFlight/pull/1"},"issue":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/1"},"comments":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/prasanna-webonise/myFlight/statuses/f0f5e29ff20dc065e7f8c7eea4a060ecaffd0fdb"}}}}