{"action":"created","comment":{"url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/comments/43049167","id":43049167,"diff_hunk":"@@ -2,31 +2,33 @@\n \n import com.json_news_item.JSONContainer;\n import com.xml_parser.XMLParser;\n-import org.json.*;\n \n-import javax.servlet.ServletConfig;\n import javax.servlet.ServletException;\n+import javax.servlet.annotation.WebServlet;\n import javax.servlet.http.HttpServlet;\n import javax.servlet.http.HttpServletRequest;\n import javax.servlet.http.HttpServletResponse;\n import java.io.IOException;\n import java.io.PrintWriter;\n+import java.util.logging.Logger;\n \n-\n+@WebServlet(\"/news\")\n public class NewsServlet extends HttpServlet {\n-//    File file = new File(\"D:/Tomcat/rss.builder.feedrss.builder.xml\");\n-    ServletConfig conf;\n+\n+    private final static Logger newsServletLog = Logger.getLogger(com.main_servlet.NewsServlet.class.getName());\n \n \n     protected void processRequest(HttpServletRequest req, HttpServletResponse resp)\n             throws ServletException, IOException {\n-        resp.setContentType(\"text/html; charset=utf-8\");\n \n+        resp.setStatus(200);\n+        newsServletLog.info(\"processRequest invoked successfully\");\n+        resp.setContentType(\"text/html; charset=utf-8\");","path":"src/main/java/com/main_servlet/NewsServlet.java","position":31,"original_position":31,"commit_id":"cc54e664995b9116e9c7c323eaf607d616b2a228","original_commit_id":"cc54e664995b9116e9c7c323eaf607d616b2a228","user":{"login":"ferustigris","id":3316337,"avatar_url":"https://avatars.githubusercontent.com/u/3316337?v=3","gravatar_id":"","url":"https://api.github.com/users/ferustigris","html_url":"https://github.com/ferustigris","followers_url":"https://api.github.com/users/ferustigris/followers","following_url":"https://api.github.com/users/ferustigris/following{/other_user}","gists_url":"https://api.github.com/users/ferustigris/gists{/gist_id}","starred_url":"https://api.github.com/users/ferustigris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferustigris/subscriptions","organizations_url":"https://api.github.com/users/ferustigris/orgs","repos_url":"https://api.github.com/users/ferustigris/repos","events_url":"https://api.github.com/users/ferustigris/events{/privacy}","received_events_url":"https://api.github.com/users/ferustigris/received_events","type":"User","site_admin":false},"body":"JSON?","created_at":"2015-10-26T20:37:24Z","updated_at":"2015-10-26T20:37:24Z","html_url":"https://github.com/MaximIsaev/Servlets/pull/2#discussion_r43049167","pull_request_url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/comments/43049167"},"html":{"href":"https://github.com/MaximIsaev/Servlets/pull/2#discussion_r43049167"},"pull_request":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2","id":48737866,"html_url":"https://github.com/MaximIsaev/Servlets/pull/2","diff_url":"https://github.com/MaximIsaev/Servlets/pull/2.diff","patch_url":"https://github.com/MaximIsaev/Servlets/pull/2.patch","issue_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues/2","number":2,"state":"open","locked":false,"title":"Jsp development","user":{"login":"MaximIsaev","id":14231274,"avatar_url":"https://avatars.githubusercontent.com/u/14231274?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximIsaev","html_url":"https://github.com/MaximIsaev","followers_url":"https://api.github.com/users/MaximIsaev/followers","following_url":"https://api.github.com/users/MaximIsaev/following{/other_user}","gists_url":"https://api.github.com/users/MaximIsaev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximIsaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximIsaev/subscriptions","organizations_url":"https://api.github.com/users/MaximIsaev/orgs","repos_url":"https://api.github.com/users/MaximIsaev/repos","events_url":"https://api.github.com/users/MaximIsaev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximIsaev/received_events","type":"User","site_admin":false},"body":"At one added annotation and logging,but still must do the 3 point from 3 task(filtering).","created_at":"2015-10-26T13:21:42Z","updated_at":"2015-10-26T20:37:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77d1ad87665970641da9e899404d307b01a7ba4f","assignee":{"login":"ferustigris","id":3316337,"avatar_url":"https://avatars.githubusercontent.com/u/3316337?v=3","gravatar_id":"","url":"https://api.github.com/users/ferustigris","html_url":"https://github.com/ferustigris","followers_url":"https://api.github.com/users/ferustigris/followers","following_url":"https://api.github.com/users/ferustigris/following{/other_user}","gists_url":"https://api.github.com/users/ferustigris/gists{/gist_id}","starred_url":"https://api.github.com/users/ferustigris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferustigris/subscriptions","organizations_url":"https://api.github.com/users/ferustigris/orgs","repos_url":"https://api.github.com/users/ferustigris/repos","events_url":"https://api.github.com/users/ferustigris/events{/privacy}","received_events_url":"https://api.github.com/users/ferustigris/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2/commits","review_comments_url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2/comments","review_comment_url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues/2/comments","statuses_url":"https://api.github.com/repos/MaximIsaev/Servlets/statuses/cc54e664995b9116e9c7c323eaf607d616b2a228","head":{"label":"MaximIsaev:JspDevelopment","ref":"JspDevelopment","sha":"cc54e664995b9116e9c7c323eaf607d616b2a228","user":{"login":"MaximIsaev","id":14231274,"avatar_url":"https://avatars.githubusercontent.com/u/14231274?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximIsaev","html_url":"https://github.com/MaximIsaev","followers_url":"https://api.github.com/users/MaximIsaev/followers","following_url":"https://api.github.com/users/MaximIsaev/following{/other_user}","gists_url":"https://api.github.com/users/MaximIsaev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximIsaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximIsaev/subscriptions","organizations_url":"https://api.github.com/users/MaximIsaev/orgs","repos_url":"https://api.github.com/users/MaximIsaev/repos","events_url":"https://api.github.com/users/MaximIsaev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximIsaev/received_events","type":"User","site_admin":false},"repo":{"id":44857132,"name":"Servlets","full_name":"MaximIsaev/Servlets","owner":{"login":"MaximIsaev","id":14231274,"avatar_url":"https://avatars.githubusercontent.com/u/14231274?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximIsaev","html_url":"https://github.com/MaximIsaev","followers_url":"https://api.github.com/users/MaximIsaev/followers","following_url":"https://api.github.com/users/MaximIsaev/following{/other_user}","gists_url":"https://api.github.com/users/MaximIsaev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximIsaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximIsaev/subscriptions","organizations_url":"https://api.github.com/users/MaximIsaev/orgs","repos_url":"https://api.github.com/users/MaximIsaev/repos","events_url":"https://api.github.com/users/MaximIsaev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximIsaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaximIsaev/Servlets","description":"Test servlet working on Tomcat_7","fork":false,"url":"https://api.github.com/repos/MaximIsaev/Servlets","forks_url":"https://api.github.com/repos/MaximIsaev/Servlets/forks","keys_url":"https://api.github.com/repos/MaximIsaev/Servlets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximIsaev/Servlets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximIsaev/Servlets/teams","hooks_url":"https://api.github.com/repos/MaximIsaev/Servlets/hooks","issue_events_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues/events{/number}","events_url":"https://api.github.com/repos/MaximIsaev/Servlets/events","assignees_url":"https://api.github.com/repos/MaximIsaev/Servlets/assignees{/user}","branches_url":"https://api.github.com/repos/MaximIsaev/Servlets/branches{/branch}","tags_url":"https://api.github.com/repos/MaximIsaev/Servlets/tags","blobs_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximIsaev/Servlets/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximIsaev/Servlets/languages","stargazers_url":"https://api.github.com/repos/MaximIsaev/Servlets/stargazers","contributors_url":"https://api.github.com/repos/MaximIsaev/Servlets/contributors","subscribers_url":"https://api.github.com/repos/MaximIsaev/Servlets/subscribers","subscription_url":"https://api.github.com/repos/MaximIsaev/Servlets/subscription","commits_url":"https://api.github.com/repos/MaximIsaev/Servlets/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximIsaev/Servlets/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaximIsaev/Servlets/contents/{+path}","compare_url":"https://api.github.com/repos/MaximIsaev/Servlets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximIsaev/Servlets/merges","archive_url":"https://api.github.com/repos/MaximIsaev/Servlets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximIsaev/Servlets/downloads","issues_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues{/number}","pulls_url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximIsaev/Servlets/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximIsaev/Servlets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximIsaev/Servlets/labels{/name}","releases_url":"https://api.github.com/repos/MaximIsaev/Servlets/releases{/id}","created_at":"2015-10-24T07:45:51Z","updated_at":"2015-10-24T08:01:07Z","pushed_at":"2015-10-26T13:21:44Z","git_url":"git://github.com/MaximIsaev/Servlets.git","ssh_url":"git@github.com:MaximIsaev/Servlets.git","clone_url":"https://github.com/MaximIsaev/Servlets.git","svn_url":"https://github.com/MaximIsaev/Servlets","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"MaximIsaev:master","ref":"master","sha":"b37dbb97a1b8524b4e0d46f709629f14abbd71d5","user":{"login":"MaximIsaev","id":14231274,"avatar_url":"https://avatars.githubusercontent.com/u/14231274?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximIsaev","html_url":"https://github.com/MaximIsaev","followers_url":"https://api.github.com/users/MaximIsaev/followers","following_url":"https://api.github.com/users/MaximIsaev/following{/other_user}","gists_url":"https://api.github.com/users/MaximIsaev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximIsaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximIsaev/subscriptions","organizations_url":"https://api.github.com/users/MaximIsaev/orgs","repos_url":"https://api.github.com/users/MaximIsaev/repos","events_url":"https://api.github.com/users/MaximIsaev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximIsaev/received_events","type":"User","site_admin":false},"repo":{"id":44857132,"name":"Servlets","full_name":"MaximIsaev/Servlets","owner":{"login":"MaximIsaev","id":14231274,"avatar_url":"https://avatars.githubusercontent.com/u/14231274?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximIsaev","html_url":"https://github.com/MaximIsaev","followers_url":"https://api.github.com/users/MaximIsaev/followers","following_url":"https://api.github.com/users/MaximIsaev/following{/other_user}","gists_url":"https://api.github.com/users/MaximIsaev/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximIsaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximIsaev/subscriptions","organizations_url":"https://api.github.com/users/MaximIsaev/orgs","repos_url":"https://api.github.com/users/MaximIsaev/repos","events_url":"https://api.github.com/users/MaximIsaev/events{/privacy}","received_events_url":"https://api.github.com/users/MaximIsaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaximIsaev/Servlets","description":"Test servlet working on Tomcat_7","fork":false,"url":"https://api.github.com/repos/MaximIsaev/Servlets","forks_url":"https://api.github.com/repos/MaximIsaev/Servlets/forks","keys_url":"https://api.github.com/repos/MaximIsaev/Servlets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximIsaev/Servlets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximIsaev/Servlets/teams","hooks_url":"https://api.github.com/repos/MaximIsaev/Servlets/hooks","issue_events_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues/events{/number}","events_url":"https://api.github.com/repos/MaximIsaev/Servlets/events","assignees_url":"https://api.github.com/repos/MaximIsaev/Servlets/assignees{/user}","branches_url":"https://api.github.com/repos/MaximIsaev/Servlets/branches{/branch}","tags_url":"https://api.github.com/repos/MaximIsaev/Servlets/tags","blobs_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximIsaev/Servlets/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximIsaev/Servlets/languages","stargazers_url":"https://api.github.com/repos/MaximIsaev/Servlets/stargazers","contributors_url":"https://api.github.com/repos/MaximIsaev/Servlets/contributors","subscribers_url":"https://api.github.com/repos/MaximIsaev/Servlets/subscribers","subscription_url":"https://api.github.com/repos/MaximIsaev/Servlets/subscription","commits_url":"https://api.github.com/repos/MaximIsaev/Servlets/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximIsaev/Servlets/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximIsaev/Servlets/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaximIsaev/Servlets/contents/{+path}","compare_url":"https://api.github.com/repos/MaximIsaev/Servlets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximIsaev/Servlets/merges","archive_url":"https://api.github.com/repos/MaximIsaev/Servlets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximIsaev/Servlets/downloads","issues_url":"https://api.github.com/repos/MaximIsaev/Servlets/issues{/number}","pulls_url":"https://api.github.com/repos/MaximIsaev/Servlets/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximIsaev/Servlets/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximIsaev/Servlets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximIsaev/Servlets/labels{/name}","releases_url":"https://api.github.com/repos/MaximIsaev/Servlets/releases{/id}","created_at":"2015-10-24T07:45:51Z","updated_at":"2015-10-24T08:01:07Z","pushed_at":"2015-10-26T13:21:44Z","git_url":"git://github.com/MaximIsaev/Servlets.git","ssh_url":"git@github.com:MaximIsaev/Servlets.git","clone_url":"https://github.com/MaximIsaev/Servlets.git","svn_url":"https://github.com/MaximIsaev/Servlets","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","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/MaximIsaev/Servlets/pulls/2"},"html":{"href":"https://github.com/MaximIsaev/Servlets/pull/2"},"issue":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/issues/2"},"comments":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/MaximIsaev/Servlets/statuses/cc54e664995b9116e9c7c323eaf607d616b2a228"}}}}