{"action":"created","comment":{"url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/comments/45607082","id":45607082,"diff_hunk":"@@ -20,38 +25,37 @@\n \n import org.apache.commons.fileupload.FileItem;\n import org.apache.commons.fileupload.disk.DiskFileItemFactory;\n-import org.restlet.data.MediaType;\n-import org.restlet.data.Status;\n import org.restlet.ext.fileupload.RestletFileUpload;\n import org.restlet.representation.Representation;\n import org.restlet.resource.Post;\n import org.restlet.resource.ResourceException;\n import org.restlet.resource.ServerResource;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n \n public class AnyServerResource extends ServerResource {\n+    \n+    private static Logger LOGGER = LoggerFactory.getLogger(AnyServerResource.class);\n \n     @Post\n     public Map<String, List<String>> handlePost(Representation entity) {\n-        String queryValue = getQueryValue(\"@test\");\n-        if (queryValue != null) {\n-            System.out.println(String.format(\"Query param @test found: %s\", queryValue));\n-        }\n-\n \n         if (entity != null) {\n-            System.out.println(\"Media type: \" + entity.getMediaType());\n-            if (MediaType.APPLICATION_WWW_FORM.equals(entity.getMediaType(), true)) {\n+            LOGGER.info(\"Media type: \" + entity.getMediaType());","path":"src/main/java/fr/quilici/tests/form/server/AnyServerResource.java","position":46,"original_position":46,"commit_id":"6aab01ca88a59fffd1fe7a24bcf156952955cbc8","original_commit_id":"6aab01ca88a59fffd1fe7a24bcf156952955cbc8","user":{"login":"PierreReliquet","id":2477052,"avatar_url":"https://avatars.githubusercontent.com/u/2477052?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreReliquet","html_url":"https://github.com/PierreReliquet","followers_url":"https://api.github.com/users/PierreReliquet/followers","following_url":"https://api.github.com/users/PierreReliquet/following{/other_user}","gists_url":"https://api.github.com/users/PierreReliquet/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreReliquet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreReliquet/subscriptions","organizations_url":"https://api.github.com/users/PierreReliquet/orgs","repos_url":"https://api.github.com/users/PierreReliquet/repos","events_url":"https://api.github.com/users/PierreReliquet/events{/privacy}","received_events_url":"https://api.github.com/users/PierreReliquet/received_events","type":"User","site_admin":false},"body":":+1: \r\n","created_at":"2015-11-23T14:19:43Z","updated_at":"2015-11-23T14:19:43Z","html_url":"https://github.com/quilicicf/FormParamsServer/pull/2#discussion_r45607082","pull_request_url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/comments/45607082"},"html":{"href":"https://github.com/quilicicf/FormParamsServer/pull/2#discussion_r45607082"},"pull_request":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2","id":51528150,"html_url":"https://github.com/quilicicf/FormParamsServer/pull/2","diff_url":"https://github.com/quilicicf/FormParamsServer/pull/2.diff","patch_url":"https://github.com/quilicicf/FormParamsServer/pull/2.patch","issue_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/2","number":2,"state":"open","locked":false,"title":"Upgrade logging","user":{"login":"quilicicf","id":5594303,"avatar_url":"https://avatars.githubusercontent.com/u/5594303?v=3","gravatar_id":"","url":"https://api.github.com/users/quilicicf","html_url":"https://github.com/quilicicf","followers_url":"https://api.github.com/users/quilicicf/followers","following_url":"https://api.github.com/users/quilicicf/following{/other_user}","gists_url":"https://api.github.com/users/quilicicf/gists{/gist_id}","starred_url":"https://api.github.com/users/quilicicf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quilicicf/subscriptions","organizations_url":"https://api.github.com/users/quilicicf/orgs","repos_url":"https://api.github.com/users/quilicicf/repos","events_url":"https://api.github.com/users/quilicicf/events{/privacy}","received_events_url":"https://api.github.com/users/quilicicf/received_events","type":"User","site_admin":false},"body":"### Scope\r\n\r\n- enhance logging\r\n- add parameter to change the port","created_at":"2015-11-23T14:18:51Z","updated_at":"2015-11-23T14:19:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf8864b42fb1e0a18a449d62d51123d97b2095ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2/commits","review_comments_url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2/comments","review_comment_url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/2/comments","statuses_url":"https://api.github.com/repos/quilicicf/FormParamsServer/statuses/6aab01ca88a59fffd1fe7a24bcf156952955cbc8","head":{"label":"quilicicf:logging","ref":"logging","sha":"6aab01ca88a59fffd1fe7a24bcf156952955cbc8","user":{"login":"quilicicf","id":5594303,"avatar_url":"https://avatars.githubusercontent.com/u/5594303?v=3","gravatar_id":"","url":"https://api.github.com/users/quilicicf","html_url":"https://github.com/quilicicf","followers_url":"https://api.github.com/users/quilicicf/followers","following_url":"https://api.github.com/users/quilicicf/following{/other_user}","gists_url":"https://api.github.com/users/quilicicf/gists{/gist_id}","starred_url":"https://api.github.com/users/quilicicf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quilicicf/subscriptions","organizations_url":"https://api.github.com/users/quilicicf/orgs","repos_url":"https://api.github.com/users/quilicicf/repos","events_url":"https://api.github.com/users/quilicicf/events{/privacy}","received_events_url":"https://api.github.com/users/quilicicf/received_events","type":"User","site_admin":false},"repo":{"id":46712502,"name":"FormParamsServer","full_name":"quilicicf/FormParamsServer","owner":{"login":"quilicicf","id":5594303,"avatar_url":"https://avatars.githubusercontent.com/u/5594303?v=3","gravatar_id":"","url":"https://api.github.com/users/quilicicf","html_url":"https://github.com/quilicicf","followers_url":"https://api.github.com/users/quilicicf/followers","following_url":"https://api.github.com/users/quilicicf/following{/other_user}","gists_url":"https://api.github.com/users/quilicicf/gists{/gist_id}","starred_url":"https://api.github.com/users/quilicicf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quilicicf/subscriptions","organizations_url":"https://api.github.com/users/quilicicf/orgs","repos_url":"https://api.github.com/users/quilicicf/repos","events_url":"https://api.github.com/users/quilicicf/events{/privacy}","received_events_url":"https://api.github.com/users/quilicicf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quilicicf/FormParamsServer","description":"Dummy server that listens to http://localhost:9003/v1/*, expects web forms to be posted and logs the content of the received web forms.","fork":false,"url":"https://api.github.com/repos/quilicicf/FormParamsServer","forks_url":"https://api.github.com/repos/quilicicf/FormParamsServer/forks","keys_url":"https://api.github.com/repos/quilicicf/FormParamsServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quilicicf/FormParamsServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quilicicf/FormParamsServer/teams","hooks_url":"https://api.github.com/repos/quilicicf/FormParamsServer/hooks","issue_events_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/events{/number}","events_url":"https://api.github.com/repos/quilicicf/FormParamsServer/events","assignees_url":"https://api.github.com/repos/quilicicf/FormParamsServer/assignees{/user}","branches_url":"https://api.github.com/repos/quilicicf/FormParamsServer/branches{/branch}","tags_url":"https://api.github.com/repos/quilicicf/FormParamsServer/tags","blobs_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quilicicf/FormParamsServer/statuses/{sha}","languages_url":"https://api.github.com/repos/quilicicf/FormParamsServer/languages","stargazers_url":"https://api.github.com/repos/quilicicf/FormParamsServer/stargazers","contributors_url":"https://api.github.com/repos/quilicicf/FormParamsServer/contributors","subscribers_url":"https://api.github.com/repos/quilicicf/FormParamsServer/subscribers","subscription_url":"https://api.github.com/repos/quilicicf/FormParamsServer/subscription","commits_url":"https://api.github.com/repos/quilicicf/FormParamsServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/quilicicf/FormParamsServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/quilicicf/FormParamsServer/contents/{+path}","compare_url":"https://api.github.com/repos/quilicicf/FormParamsServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quilicicf/FormParamsServer/merges","archive_url":"https://api.github.com/repos/quilicicf/FormParamsServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quilicicf/FormParamsServer/downloads","issues_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues{/number}","pulls_url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls{/number}","milestones_url":"https://api.github.com/repos/quilicicf/FormParamsServer/milestones{/number}","notifications_url":"https://api.github.com/repos/quilicicf/FormParamsServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quilicicf/FormParamsServer/labels{/name}","releases_url":"https://api.github.com/repos/quilicicf/FormParamsServer/releases{/id}","created_at":"2015-11-23T10:19:07Z","updated_at":"2015-11-23T10:51:58Z","pushed_at":"2015-11-23T14:18:52Z","git_url":"git://github.com/quilicicf/FormParamsServer.git","ssh_url":"git@github.com:quilicicf/FormParamsServer.git","clone_url":"https://github.com/quilicicf/FormParamsServer.git","svn_url":"https://github.com/quilicicf/FormParamsServer","homepage":"","size":9,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"quilicicf:master","ref":"master","sha":"1df694f8814af1996484a252de31b0881409a5ad","user":{"login":"quilicicf","id":5594303,"avatar_url":"https://avatars.githubusercontent.com/u/5594303?v=3","gravatar_id":"","url":"https://api.github.com/users/quilicicf","html_url":"https://github.com/quilicicf","followers_url":"https://api.github.com/users/quilicicf/followers","following_url":"https://api.github.com/users/quilicicf/following{/other_user}","gists_url":"https://api.github.com/users/quilicicf/gists{/gist_id}","starred_url":"https://api.github.com/users/quilicicf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quilicicf/subscriptions","organizations_url":"https://api.github.com/users/quilicicf/orgs","repos_url":"https://api.github.com/users/quilicicf/repos","events_url":"https://api.github.com/users/quilicicf/events{/privacy}","received_events_url":"https://api.github.com/users/quilicicf/received_events","type":"User","site_admin":false},"repo":{"id":46712502,"name":"FormParamsServer","full_name":"quilicicf/FormParamsServer","owner":{"login":"quilicicf","id":5594303,"avatar_url":"https://avatars.githubusercontent.com/u/5594303?v=3","gravatar_id":"","url":"https://api.github.com/users/quilicicf","html_url":"https://github.com/quilicicf","followers_url":"https://api.github.com/users/quilicicf/followers","following_url":"https://api.github.com/users/quilicicf/following{/other_user}","gists_url":"https://api.github.com/users/quilicicf/gists{/gist_id}","starred_url":"https://api.github.com/users/quilicicf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quilicicf/subscriptions","organizations_url":"https://api.github.com/users/quilicicf/orgs","repos_url":"https://api.github.com/users/quilicicf/repos","events_url":"https://api.github.com/users/quilicicf/events{/privacy}","received_events_url":"https://api.github.com/users/quilicicf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quilicicf/FormParamsServer","description":"Dummy server that listens to http://localhost:9003/v1/*, expects web forms to be posted and logs the content of the received web forms.","fork":false,"url":"https://api.github.com/repos/quilicicf/FormParamsServer","forks_url":"https://api.github.com/repos/quilicicf/FormParamsServer/forks","keys_url":"https://api.github.com/repos/quilicicf/FormParamsServer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quilicicf/FormParamsServer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quilicicf/FormParamsServer/teams","hooks_url":"https://api.github.com/repos/quilicicf/FormParamsServer/hooks","issue_events_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/events{/number}","events_url":"https://api.github.com/repos/quilicicf/FormParamsServer/events","assignees_url":"https://api.github.com/repos/quilicicf/FormParamsServer/assignees{/user}","branches_url":"https://api.github.com/repos/quilicicf/FormParamsServer/branches{/branch}","tags_url":"https://api.github.com/repos/quilicicf/FormParamsServer/tags","blobs_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/refs{/sha}","trees_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quilicicf/FormParamsServer/statuses/{sha}","languages_url":"https://api.github.com/repos/quilicicf/FormParamsServer/languages","stargazers_url":"https://api.github.com/repos/quilicicf/FormParamsServer/stargazers","contributors_url":"https://api.github.com/repos/quilicicf/FormParamsServer/contributors","subscribers_url":"https://api.github.com/repos/quilicicf/FormParamsServer/subscribers","subscription_url":"https://api.github.com/repos/quilicicf/FormParamsServer/subscription","commits_url":"https://api.github.com/repos/quilicicf/FormParamsServer/commits{/sha}","git_commits_url":"https://api.github.com/repos/quilicicf/FormParamsServer/git/commits{/sha}","comments_url":"https://api.github.com/repos/quilicicf/FormParamsServer/comments{/number}","issue_comment_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/comments{/number}","contents_url":"https://api.github.com/repos/quilicicf/FormParamsServer/contents/{+path}","compare_url":"https://api.github.com/repos/quilicicf/FormParamsServer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quilicicf/FormParamsServer/merges","archive_url":"https://api.github.com/repos/quilicicf/FormParamsServer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quilicicf/FormParamsServer/downloads","issues_url":"https://api.github.com/repos/quilicicf/FormParamsServer/issues{/number}","pulls_url":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls{/number}","milestones_url":"https://api.github.com/repos/quilicicf/FormParamsServer/milestones{/number}","notifications_url":"https://api.github.com/repos/quilicicf/FormParamsServer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quilicicf/FormParamsServer/labels{/name}","releases_url":"https://api.github.com/repos/quilicicf/FormParamsServer/releases{/id}","created_at":"2015-11-23T10:19:07Z","updated_at":"2015-11-23T10:51:58Z","pushed_at":"2015-11-23T14:18:52Z","git_url":"git://github.com/quilicicf/FormParamsServer.git","ssh_url":"git@github.com:quilicicf/FormParamsServer.git","clone_url":"https://github.com/quilicicf/FormParamsServer.git","svn_url":"https://github.com/quilicicf/FormParamsServer","homepage":"","size":9,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2"},"html":{"href":"https://github.com/quilicicf/FormParamsServer/pull/2"},"issue":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/2"},"comments":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/quilicicf/FormParamsServer/statuses/6aab01ca88a59fffd1fe7a24bcf156952955cbc8"}}}}