{"action":"created","comment":{"url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments/40605508","id":40605508,"diff_hunk":"@@ -0,0 +1,177 @@\n+package de.qabel.desktop;\n+\n+import com.sun.net.httpserver.Headers;\n+import com.sun.net.httpserver.HttpExchange;\n+import com.sun.net.httpserver.HttpHandler;\n+import com.sun.net.httpserver.HttpServer;\n+import de.qabel.core.config.ResourceActor;\n+import de.qabel.core.drop.DropActor;\n+import de.qabel.core.module.ModuleManager;\n+\n+import java.io.IOException;\n+import java.io.UnsupportedEncodingException;\n+import java.net.InetSocketAddress;\n+import java.net.URI;\n+import java.net.URLDecoder;\n+import java.nio.charset.Charset;\n+import java.nio.charset.StandardCharsets;\n+import java.util.ArrayList;\n+import java.util.LinkedHashMap;\n+import java.util.List;\n+import java.util.Map;\n+\n+public class QblRESTServer implements Runnable {    private static final String HOSTNAME = \"localhost\";","path":"src/main/java/de/qabel/desktop/QblRESTServer.java","position":23,"original_position":23,"commit_id":"c41f8311b4f0603541d3c93b8d4ccf23041534cd","original_commit_id":"c41f8311b4f0603541d3c93b8d4ccf23041534cd","user":{"login":"jan-schreib","id":2648381,"avatar_url":"https://avatars.githubusercontent.com/u/2648381?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-schreib","html_url":"https://github.com/jan-schreib","followers_url":"https://api.github.com/users/jan-schreib/followers","following_url":"https://api.github.com/users/jan-schreib/following{/other_user}","gists_url":"https://api.github.com/users/jan-schreib/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-schreib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-schreib/subscriptions","organizations_url":"https://api.github.com/users/jan-schreib/orgs","repos_url":"https://api.github.com/users/jan-schreib/repos","events_url":"https://api.github.com/users/jan-schreib/events{/privacy}","received_events_url":"https://api.github.com/users/jan-schreib/received_events","type":"User","site_admin":false},"body":"Missing a new line.","created_at":"2015-09-28T21:05:45Z","updated_at":"2015-09-28T21:05:45Z","html_url":"https://github.com/Qabel/qabel-desktop/pull/27#discussion_r40605508","pull_request_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments/40605508"},"html":{"href":"https://github.com/Qabel/qabel-desktop/pull/27#discussion_r40605508"},"pull_request":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27","id":46135061,"html_url":"https://github.com/Qabel/qabel-desktop/pull/27","diff_url":"https://github.com/Qabel/qabel-desktop/pull/27.diff","patch_url":"https://github.com/Qabel/qabel-desktop/pull/27.patch","issue_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/27","number":27,"state":"open","locked":false,"title":"REST-server embedded in the desktop application","user":{"login":"audax","id":858339,"avatar_url":"https://avatars.githubusercontent.com/u/858339?v=3","gravatar_id":"","url":"https://api.github.com/users/audax","html_url":"https://github.com/audax","followers_url":"https://api.github.com/users/audax/followers","following_url":"https://api.github.com/users/audax/following{/other_user}","gists_url":"https://api.github.com/users/audax/gists{/gist_id}","starred_url":"https://api.github.com/users/audax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audax/subscriptions","organizations_url":"https://api.github.com/users/audax/orgs","repos_url":"https://api.github.com/users/audax/repos","events_url":"https://api.github.com/users/audax/events{/privacy}","received_events_url":"https://api.github.com/users/audax/received_events","type":"User","site_admin":false},"body":"Implements a REST-server that is started in a thread of the qabel-desktop application which exposes all resources that are needed by user interfaces.\r\n\r\nThis allows us to decouple the user interfaces completely from the qabel-core.\r\n\r\n\r\nSee: #26 and https://github.com/Qabel/qabel.github.io/issues/99 and the documentation pull request https://github.com/Qabel/qabel.github.io/pull/100\r\n\r\nNot ready to merge yet.","created_at":"2015-09-28T09:20:25Z","updated_at":"2015-09-28T21:05:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16187f400becb01df88bf28aae6ea7e61f6d06af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27/commits","review_comments_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27/comments","review_comment_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/27/comments","statuses_url":"https://api.github.com/repos/Qabel/qabel-desktop/statuses/c41f8311b4f0603541d3c93b8d4ccf23041534cd","head":{"label":"audax:feature/REST-server","ref":"feature/REST-server","sha":"c41f8311b4f0603541d3c93b8d4ccf23041534cd","user":{"login":"audax","id":858339,"avatar_url":"https://avatars.githubusercontent.com/u/858339?v=3","gravatar_id":"","url":"https://api.github.com/users/audax","html_url":"https://github.com/audax","followers_url":"https://api.github.com/users/audax/followers","following_url":"https://api.github.com/users/audax/following{/other_user}","gists_url":"https://api.github.com/users/audax/gists{/gist_id}","starred_url":"https://api.github.com/users/audax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audax/subscriptions","organizations_url":"https://api.github.com/users/audax/orgs","repos_url":"https://api.github.com/users/audax/repos","events_url":"https://api.github.com/users/audax/events{/privacy}","received_events_url":"https://api.github.com/users/audax/received_events","type":"User","site_admin":false},"repo":{"id":43003190,"name":"qabel-desktop","full_name":"audax/qabel-desktop","owner":{"login":"audax","id":858339,"avatar_url":"https://avatars.githubusercontent.com/u/858339?v=3","gravatar_id":"","url":"https://api.github.com/users/audax","html_url":"https://github.com/audax","followers_url":"https://api.github.com/users/audax/followers","following_url":"https://api.github.com/users/audax/following{/other_user}","gists_url":"https://api.github.com/users/audax/gists{/gist_id}","starred_url":"https://api.github.com/users/audax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/audax/subscriptions","organizations_url":"https://api.github.com/users/audax/orgs","repos_url":"https://api.github.com/users/audax/repos","events_url":"https://api.github.com/users/audax/events{/privacy}","received_events_url":"https://api.github.com/users/audax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/audax/qabel-desktop","description":"Desktop Frontend of Qabel","fork":true,"url":"https://api.github.com/repos/audax/qabel-desktop","forks_url":"https://api.github.com/repos/audax/qabel-desktop/forks","keys_url":"https://api.github.com/repos/audax/qabel-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/audax/qabel-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/audax/qabel-desktop/teams","hooks_url":"https://api.github.com/repos/audax/qabel-desktop/hooks","issue_events_url":"https://api.github.com/repos/audax/qabel-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/audax/qabel-desktop/events","assignees_url":"https://api.github.com/repos/audax/qabel-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/audax/qabel-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/audax/qabel-desktop/tags","blobs_url":"https://api.github.com/repos/audax/qabel-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/audax/qabel-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/audax/qabel-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/audax/qabel-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/audax/qabel-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/audax/qabel-desktop/languages","stargazers_url":"https://api.github.com/repos/audax/qabel-desktop/stargazers","contributors_url":"https://api.github.com/repos/audax/qabel-desktop/contributors","subscribers_url":"https://api.github.com/repos/audax/qabel-desktop/subscribers","subscription_url":"https://api.github.com/repos/audax/qabel-desktop/subscription","commits_url":"https://api.github.com/repos/audax/qabel-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/audax/qabel-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/audax/qabel-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/audax/qabel-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/audax/qabel-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/audax/qabel-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/audax/qabel-desktop/merges","archive_url":"https://api.github.com/repos/audax/qabel-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/audax/qabel-desktop/downloads","issues_url":"https://api.github.com/repos/audax/qabel-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/audax/qabel-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/audax/qabel-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/audax/qabel-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/audax/qabel-desktop/labels{/name}","releases_url":"https://api.github.com/repos/audax/qabel-desktop/releases{/id}","created_at":"2015-09-23T13:38:35Z","updated_at":"2015-09-23T13:38:35Z","pushed_at":"2015-09-27T08:38:46Z","git_url":"git://github.com/audax/qabel-desktop.git","ssh_url":"git@github.com:audax/qabel-desktop.git","clone_url":"https://github.com/audax/qabel-desktop.git","svn_url":"https://github.com/audax/qabel-desktop","homepage":null,"size":172,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Qabel:master","ref":"master","sha":"c5107297679f57f8ebf8b00fce43eb8c1050de75","user":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"repo":{"id":25461792,"name":"qabel-desktop","full_name":"Qabel/qabel-desktop","owner":{"login":"Qabel","id":7711470,"avatar_url":"https://avatars.githubusercontent.com/u/7711470?v=3","gravatar_id":"","url":"https://api.github.com/users/Qabel","html_url":"https://github.com/Qabel","followers_url":"https://api.github.com/users/Qabel/followers","following_url":"https://api.github.com/users/Qabel/following{/other_user}","gists_url":"https://api.github.com/users/Qabel/gists{/gist_id}","starred_url":"https://api.github.com/users/Qabel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qabel/subscriptions","organizations_url":"https://api.github.com/users/Qabel/orgs","repos_url":"https://api.github.com/users/Qabel/repos","events_url":"https://api.github.com/users/Qabel/events{/privacy}","received_events_url":"https://api.github.com/users/Qabel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Qabel/qabel-desktop","description":"Desktop Frontend of Qabel","fork":false,"url":"https://api.github.com/repos/Qabel/qabel-desktop","forks_url":"https://api.github.com/repos/Qabel/qabel-desktop/forks","keys_url":"https://api.github.com/repos/Qabel/qabel-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Qabel/qabel-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Qabel/qabel-desktop/teams","hooks_url":"https://api.github.com/repos/Qabel/qabel-desktop/hooks","issue_events_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/Qabel/qabel-desktop/events","assignees_url":"https://api.github.com/repos/Qabel/qabel-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/Qabel/qabel-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/Qabel/qabel-desktop/tags","blobs_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Qabel/qabel-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/Qabel/qabel-desktop/languages","stargazers_url":"https://api.github.com/repos/Qabel/qabel-desktop/stargazers","contributors_url":"https://api.github.com/repos/Qabel/qabel-desktop/contributors","subscribers_url":"https://api.github.com/repos/Qabel/qabel-desktop/subscribers","subscription_url":"https://api.github.com/repos/Qabel/qabel-desktop/subscription","commits_url":"https://api.github.com/repos/Qabel/qabel-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Qabel/qabel-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Qabel/qabel-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Qabel/qabel-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/Qabel/qabel-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Qabel/qabel-desktop/merges","archive_url":"https://api.github.com/repos/Qabel/qabel-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Qabel/qabel-desktop/downloads","issues_url":"https://api.github.com/repos/Qabel/qabel-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/Qabel/qabel-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/Qabel/qabel-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/Qabel/qabel-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Qabel/qabel-desktop/labels{/name}","releases_url":"https://api.github.com/repos/Qabel/qabel-desktop/releases{/id}","created_at":"2014-10-20T10:38:47Z","updated_at":"2015-04-28T16:08:51Z","pushed_at":"2015-09-28T09:20:25Z","git_url":"git://github.com/Qabel/qabel-desktop.git","ssh_url":"git@github.com:Qabel/qabel-desktop.git","clone_url":"https://github.com/Qabel/qabel-desktop.git","svn_url":"https://github.com/Qabel/qabel-desktop","homepage":null,"size":443,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27"},"html":{"href":"https://github.com/Qabel/qabel-desktop/pull/27"},"issue":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/issues/27"},"comments":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/Qabel/qabel-desktop/statuses/c41f8311b4f0603541d3c93b8d4ccf23041534cd"}}}}