{"action":"created","comment":{"url":"https://api.github.com/repos/zalando/riptide/pulls/comments/63626574","id":63626574,"diff_hunk":"@@ -0,0 +1,68 @@\n+package org.zalando.riptide;\n+\n+/*\n+ * ⁣​\n+ * Riptide\n+ * ⁣⁣\n+ * Copyright (C) 2015 Zalando SE\n+ * ⁣⁣\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ * \n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ * \n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ * ​⁣\n+ */\n+\n+import java.net.URI;\n+import java.util.Map;\n+import java.util.function.Supplier;\n+import org.springframework.http.HttpEntity;\n+import org.springframework.http.HttpHeaders;\n+import org.springframework.http.HttpMethod;\n+import org.springframework.web.util.UriTemplateHandler;\n+\n+abstract class RestBase<TEMPLATE, DISPATCHER> {\n+\n+    protected final Router router = new Router();\n+    protected final TEMPLATE template;\n+\n+    private final Supplier<UriTemplateHandler> uriTemplateHandler;\n+\n+    protected RestBase(final TEMPLATE template, final Supplier<UriTemplateHandler> uriTemplateHandler) {","path":"src/main/java/org/zalando/riptide/RestBase.java","position":38,"original_position":38,"commit_id":"f10b8cd77acdbafc1e0771309c7e43baed130fe1","original_commit_id":"f10b8cd77acdbafc1e0771309c7e43baed130fe1","user":{"login":"AlexanderYastrebov","id":697976,"avatar_url":"https://avatars.githubusercontent.com/u/697976?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderYastrebov","html_url":"https://github.com/AlexanderYastrebov","followers_url":"https://api.github.com/users/AlexanderYastrebov/followers","following_url":"https://api.github.com/users/AlexanderYastrebov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderYastrebov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderYastrebov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderYastrebov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderYastrebov/orgs","repos_url":"https://api.github.com/users/AlexanderYastrebov/repos","events_url":"https://api.github.com/users/AlexanderYastrebov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderYastrebov/received_events","type":"User","site_admin":false},"body":"no)","created_at":"2016-05-18T00:11:37Z","updated_at":"2016-05-18T00:11:37Z","html_url":"https://github.com/zalando/riptide/pull/68#discussion_r63626574","pull_request_url":"https://api.github.com/repos/zalando/riptide/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/zalando/riptide/pulls/comments/63626574"},"html":{"href":"https://github.com/zalando/riptide/pull/68#discussion_r63626574"},"pull_request":{"href":"https://api.github.com/repos/zalando/riptide/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/zalando/riptide/pulls/68","id":70449902,"html_url":"https://github.com/zalando/riptide/pull/68","diff_url":"https://github.com/zalando/riptide/pull/68.diff","patch_url":"https://github.com/zalando/riptide/pull/68.patch","issue_url":"https://api.github.com/repos/zalando/riptide/issues/68","number":68,"state":"open","locked":false,"title":"Feature/urltemplate","user":{"login":"AlexanderYastrebov","id":697976,"avatar_url":"https://avatars.githubusercontent.com/u/697976?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderYastrebov","html_url":"https://github.com/AlexanderYastrebov","followers_url":"https://api.github.com/users/AlexanderYastrebov/followers","following_url":"https://api.github.com/users/AlexanderYastrebov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderYastrebov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderYastrebov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderYastrebov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderYastrebov/orgs","repos_url":"https://api.github.com/users/AlexanderYastrebov/repos","events_url":"https://api.github.com/users/AlexanderYastrebov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderYastrebov/received_events","type":"User","site_admin":false},"body":"- [ ] document use case","created_at":"2016-05-17T23:53:13Z","updated_at":"2016-05-18T00:11:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff0430bbe15c422191d2c3731f45efd93ce3cc10","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zalando/riptide/pulls/68/commits","review_comments_url":"https://api.github.com/repos/zalando/riptide/pulls/68/comments","review_comment_url":"https://api.github.com/repos/zalando/riptide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/riptide/issues/68/comments","statuses_url":"https://api.github.com/repos/zalando/riptide/statuses/f10b8cd77acdbafc1e0771309c7e43baed130fe1","head":{"label":"zalando:feature/urltemplate","ref":"feature/urltemplate","sha":"f10b8cd77acdbafc1e0771309c7e43baed130fe1","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":33559545,"name":"riptide","full_name":"zalando/riptide","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/riptide","description":"Client=side response routing for Spring's RestTemplate","fork":false,"url":"https://api.github.com/repos/zalando/riptide","forks_url":"https://api.github.com/repos/zalando/riptide/forks","keys_url":"https://api.github.com/repos/zalando/riptide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/riptide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/riptide/teams","hooks_url":"https://api.github.com/repos/zalando/riptide/hooks","issue_events_url":"https://api.github.com/repos/zalando/riptide/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/riptide/events","assignees_url":"https://api.github.com/repos/zalando/riptide/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/riptide/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/riptide/tags","blobs_url":"https://api.github.com/repos/zalando/riptide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/riptide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/riptide/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/riptide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/riptide/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/riptide/languages","stargazers_url":"https://api.github.com/repos/zalando/riptide/stargazers","contributors_url":"https://api.github.com/repos/zalando/riptide/contributors","subscribers_url":"https://api.github.com/repos/zalando/riptide/subscribers","subscription_url":"https://api.github.com/repos/zalando/riptide/subscription","commits_url":"https://api.github.com/repos/zalando/riptide/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/riptide/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/riptide/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/riptide/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/riptide/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/riptide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/riptide/merges","archive_url":"https://api.github.com/repos/zalando/riptide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/riptide/downloads","issues_url":"https://api.github.com/repos/zalando/riptide/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/riptide/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/riptide/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/riptide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/riptide/labels{/name}","releases_url":"https://api.github.com/repos/zalando/riptide/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/riptide/deployments","created_at":"2015-04-07T18:03:31Z","updated_at":"2016-05-13T12:22:07Z","pushed_at":"2016-05-17T23:59:47Z","git_url":"git://github.com/zalando/riptide.git","ssh_url":"git@github.com:zalando/riptide.git","clone_url":"https://github.com/zalando/riptide.git","svn_url":"https://github.com/zalando/riptide","homepage":"","size":798,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":10,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"ee755d524cdd058528d716b3f2f54cbbe9d94df0","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":33559545,"name":"riptide","full_name":"zalando/riptide","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/riptide","description":"Client=side response routing for Spring's RestTemplate","fork":false,"url":"https://api.github.com/repos/zalando/riptide","forks_url":"https://api.github.com/repos/zalando/riptide/forks","keys_url":"https://api.github.com/repos/zalando/riptide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/riptide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/riptide/teams","hooks_url":"https://api.github.com/repos/zalando/riptide/hooks","issue_events_url":"https://api.github.com/repos/zalando/riptide/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/riptide/events","assignees_url":"https://api.github.com/repos/zalando/riptide/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/riptide/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/riptide/tags","blobs_url":"https://api.github.com/repos/zalando/riptide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/riptide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/riptide/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/riptide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/riptide/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/riptide/languages","stargazers_url":"https://api.github.com/repos/zalando/riptide/stargazers","contributors_url":"https://api.github.com/repos/zalando/riptide/contributors","subscribers_url":"https://api.github.com/repos/zalando/riptide/subscribers","subscription_url":"https://api.github.com/repos/zalando/riptide/subscription","commits_url":"https://api.github.com/repos/zalando/riptide/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/riptide/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/riptide/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/riptide/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/riptide/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/riptide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/riptide/merges","archive_url":"https://api.github.com/repos/zalando/riptide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/riptide/downloads","issues_url":"https://api.github.com/repos/zalando/riptide/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/riptide/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/riptide/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/riptide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/riptide/labels{/name}","releases_url":"https://api.github.com/repos/zalando/riptide/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/riptide/deployments","created_at":"2015-04-07T18:03:31Z","updated_at":"2016-05-13T12:22:07Z","pushed_at":"2016-05-17T23:59:47Z","git_url":"git://github.com/zalando/riptide.git","ssh_url":"git@github.com:zalando/riptide.git","clone_url":"https://github.com/zalando/riptide.git","svn_url":"https://github.com/zalando/riptide","homepage":"","size":798,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":7,"forks":1,"open_issues":7,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/riptide/pulls/68"},"html":{"href":"https://github.com/zalando/riptide/pull/68"},"issue":{"href":"https://api.github.com/repos/zalando/riptide/issues/68"},"comments":{"href":"https://api.github.com/repos/zalando/riptide/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/riptide/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/riptide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/riptide/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/riptide/statuses/f10b8cd77acdbafc1e0771309c7e43baed130fe1"}}}}