{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments/33438067","id":33438067,"diff_hunk":"@@ -0,0 +1,92 @@\n+package com.clouway.subnets.http;\n+\n+\n+import com.clouway.subnets.core.HibernateValidationException;\n+import com.clouway.subnets.core.ObjectCastException;\n+import com.google.gson.Gson;\n+import com.google.gson.JsonSyntaxException;\n+import com.google.inject.Inject;\n+import com.google.inject.TypeLiteral;\n+import com.google.sitebricks.client.Transport;\n+\n+import javax.servlet.http.HttpServletResponse;\n+import javax.validation.ConstraintViolation;\n+import javax.validation.Validation;\n+import javax.validation.Validator;\n+import javax.validation.ValidatorFactory;\n+import java.io.BufferedReader;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.InputStreamReader;\n+import java.io.OutputStream;\n+import java.util.Set;\n+\n+/**\n+ * Created byivan.genchev1989@gmail.com.\n+ */\n+\n+public class MyJsonTransport implements Transport {","path":"subnets/src/main/java/com/clouway/subnets/http/MyJsonTransport.java","position":28,"original_position":28,"commit_id":"ce7a3f56e48c99c6c13b6798bbcc9198b487098b","original_commit_id":"65b337f1acd234410dd66b424df12d4316cb57c8","user":{"login":"StanislavValov","id":5948480,"avatar_url":"https://avatars.githubusercontent.com/u/5948480?v=3","gravatar_id":"","url":"https://api.github.com/users/StanislavValov","html_url":"https://github.com/StanislavValov","followers_url":"https://api.github.com/users/StanislavValov/followers","following_url":"https://api.github.com/users/StanislavValov/following{/other_user}","gists_url":"https://api.github.com/users/StanislavValov/gists{/gist_id}","starred_url":"https://api.github.com/users/StanislavValov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StanislavValov/subscriptions","organizations_url":"https://api.github.com/users/StanislavValov/orgs","repos_url":"https://api.github.com/users/StanislavValov/repos","events_url":"https://api.github.com/users/StanislavValov/events{/privacy}","received_events_url":"https://api.github.com/users/StanislavValov/received_events","type":"User","site_admin":false},"body":"just Json","created_at":"2015-06-29T06:58:08Z","updated_at":"2015-06-29T06:58:08Z","html_url":"https://github.com/clouway-incubator/subnet-management-system/pull/10#discussion_r33438067","pull_request_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments/33438067"},"html":{"href":"https://github.com/clouway-incubator/subnet-management-system/pull/10#discussion_r33438067"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10","id":38000473,"html_url":"https://github.com/clouway-incubator/subnet-management-system/pull/10","diff_url":"https://github.com/clouway-incubator/subnet-management-system/pull/10.diff","patch_url":"https://github.com/clouway-incubator/subnet-management-system/pull/10.patch","issue_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/10","number":10,"state":"open","locked":false,"title":"subnet-managment-system:add new subnet","user":{"login":"freekman","id":8199446,"avatar_url":"https://avatars.githubusercontent.com/u/8199446?v=3","gravatar_id":"","url":"https://api.github.com/users/freekman","html_url":"https://github.com/freekman","followers_url":"https://api.github.com/users/freekman/followers","following_url":"https://api.github.com/users/freekman/following{/other_user}","gists_url":"https://api.github.com/users/freekman/gists{/gist_id}","starred_url":"https://api.github.com/users/freekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekman/subscriptions","organizations_url":"https://api.github.com/users/freekman/orgs","repos_url":"https://api.github.com/users/freekman/repos","events_url":"https://api.github.com/users/freekman/events{/privacy}","received_events_url":"https://api.github.com/users/freekman/received_events","type":"User","site_admin":false},"body":"#3 #4 \r\n\r\n![screenshot from 2015-06-18 15 15 48](https://cloud.githubusercontent.com/assets/8199446/8230882/f0d183dc-15cc-11e5-81ca-18c1e87da525.png)\r\n\r\nThe client should be able to register a new subnet if it is not overlapping an existing one.","created_at":"2015-06-18T12:22:24Z","updated_at":"2015-06-29T06:58:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39892defe3621876824afd03d04d596173020257","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/10/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/statuses/ce7a3f56e48c99c6c13b6798bbcc9198b487098b","head":{"label":"freekman:ivan_genchev","ref":"ivan_genchev","sha":"ce7a3f56e48c99c6c13b6798bbcc9198b487098b","user":{"login":"freekman","id":8199446,"avatar_url":"https://avatars.githubusercontent.com/u/8199446?v=3","gravatar_id":"","url":"https://api.github.com/users/freekman","html_url":"https://github.com/freekman","followers_url":"https://api.github.com/users/freekman/followers","following_url":"https://api.github.com/users/freekman/following{/other_user}","gists_url":"https://api.github.com/users/freekman/gists{/gist_id}","starred_url":"https://api.github.com/users/freekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekman/subscriptions","organizations_url":"https://api.github.com/users/freekman/orgs","repos_url":"https://api.github.com/users/freekman/repos","events_url":"https://api.github.com/users/freekman/events{/privacy}","received_events_url":"https://api.github.com/users/freekman/received_events","type":"User","site_admin":false},"repo":{"id":37461025,"name":"subnet-management-system","full_name":"freekman/subnet-management-system","owner":{"login":"freekman","id":8199446,"avatar_url":"https://avatars.githubusercontent.com/u/8199446?v=3","gravatar_id":"","url":"https://api.github.com/users/freekman","html_url":"https://github.com/freekman","followers_url":"https://api.github.com/users/freekman/followers","following_url":"https://api.github.com/users/freekman/following{/other_user}","gists_url":"https://api.github.com/users/freekman/gists{/gist_id}","starred_url":"https://api.github.com/users/freekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekman/subscriptions","organizations_url":"https://api.github.com/users/freekman/orgs","repos_url":"https://api.github.com/users/freekman/repos","events_url":"https://api.github.com/users/freekman/events{/privacy}","received_events_url":"https://api.github.com/users/freekman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/freekman/subnet-management-system","description":"Manage subnets","fork":true,"url":"https://api.github.com/repos/freekman/subnet-management-system","forks_url":"https://api.github.com/repos/freekman/subnet-management-system/forks","keys_url":"https://api.github.com/repos/freekman/subnet-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freekman/subnet-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freekman/subnet-management-system/teams","hooks_url":"https://api.github.com/repos/freekman/subnet-management-system/hooks","issue_events_url":"https://api.github.com/repos/freekman/subnet-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/freekman/subnet-management-system/events","assignees_url":"https://api.github.com/repos/freekman/subnet-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/freekman/subnet-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/freekman/subnet-management-system/tags","blobs_url":"https://api.github.com/repos/freekman/subnet-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freekman/subnet-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freekman/subnet-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/freekman/subnet-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freekman/subnet-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/freekman/subnet-management-system/languages","stargazers_url":"https://api.github.com/repos/freekman/subnet-management-system/stargazers","contributors_url":"https://api.github.com/repos/freekman/subnet-management-system/contributors","subscribers_url":"https://api.github.com/repos/freekman/subnet-management-system/subscribers","subscription_url":"https://api.github.com/repos/freekman/subnet-management-system/subscription","commits_url":"https://api.github.com/repos/freekman/subnet-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/freekman/subnet-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/freekman/subnet-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/freekman/subnet-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/freekman/subnet-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/freekman/subnet-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freekman/subnet-management-system/merges","archive_url":"https://api.github.com/repos/freekman/subnet-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freekman/subnet-management-system/downloads","issues_url":"https://api.github.com/repos/freekman/subnet-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/freekman/subnet-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/freekman/subnet-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/freekman/subnet-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freekman/subnet-management-system/labels{/name}","releases_url":"https://api.github.com/repos/freekman/subnet-management-system/releases{/id}","created_at":"2015-06-15T11:28:05Z","updated_at":"2015-06-15T11:28:05Z","pushed_at":"2015-06-29T06:53:37Z","git_url":"git://github.com/freekman/subnet-management-system.git","ssh_url":"git@github.com:freekman/subnet-management-system.git","clone_url":"https://github.com/freekman/subnet-management-system.git","svn_url":"https://github.com/freekman/subnet-management-system","homepage":null,"size":656,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"clouway-incubator:master","ref":"master","sha":"9df6b065a6d42a66a98371952666073e1e5bf866","user":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":37449766,"name":"subnet-management-system","full_name":"clouway-incubator/subnet-management-system","owner":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway-incubator/subnet-management-system","description":"Manage subnets","fork":false,"url":"https://api.github.com/repos/clouway-incubator/subnet-management-system","forks_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/forks","keys_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/events","assignees_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/merges","archive_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/subnet-management-system/releases{/id}","created_at":"2015-06-15T07:19:44Z","updated_at":"2015-06-15T10:25:17Z","pushed_at":"2015-06-29T06:53:38Z","git_url":"git://github.com/clouway-incubator/subnet-management-system.git","ssh_url":"git@github.com:clouway-incubator/subnet-management-system.git","clone_url":"https://github.com/clouway-incubator/subnet-management-system.git","svn_url":"https://github.com/clouway-incubator/subnet-management-system","homepage":null,"size":1514,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":10,"forks":2,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10"},"html":{"href":"https://github.com/clouway-incubator/subnet-management-system/pull/10"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/10"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/subnet-management-system/statuses/ce7a3f56e48c99c6c13b6798bbcc9198b487098b"}}}}