{"action":"created","comment":{"url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/comments/24089720","id":24089720,"diff_hunk":"@@ -0,0 +1,360 @@\n+/*\n+ * Copyright 2015 the original author or authors.\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+package org.springframework.amqp.rabbit.core;\n+\n+import java.net.URI;\n+import java.net.URISyntaxException;\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.Map;\n+\n+import org.apache.http.HttpHost;\n+import org.apache.http.auth.AuthScope;\n+import org.apache.http.auth.UsernamePasswordCredentials;\n+import org.apache.http.client.AuthCache;\n+import org.apache.http.client.CredentialsProvider;\n+import org.apache.http.client.HttpClient;\n+import org.apache.http.client.protocol.HttpClientContext;\n+import org.apache.http.impl.auth.BasicScheme;\n+import org.apache.http.impl.client.BasicAuthCache;\n+import org.apache.http.impl.client.BasicCredentialsProvider;\n+import org.apache.http.impl.client.HttpClients;\n+import org.apache.http.protocol.HttpContext;\n+\n+import org.springframework.amqp.AmqpException;\n+import org.springframework.amqp.core.AbstractExchange;\n+import org.springframework.amqp.core.Binding;\n+import org.springframework.amqp.core.DirectExchange;\n+import org.springframework.amqp.core.Exchange;\n+import org.springframework.amqp.core.FanoutExchange;\n+import org.springframework.amqp.core.HeadersExchange;\n+import org.springframework.amqp.core.Queue;\n+import org.springframework.amqp.core.TopicExchange;\n+import org.springframework.amqp.rabbit.support.Policy;\n+import org.springframework.http.HttpMethod;\n+import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;\n+import org.springframework.web.client.RestTemplate;\n+import org.springframework.web.util.UriComponentsBuilder;\n+\n+/**\n+ * @author Gary Russell\n+ * @since 1.5\n+ *\n+ */\n+public class RabbitManagementTemplate {\n+\n+\tprivate final RestTemplate restTemplate;\n+\n+\tprivate final String baseUri;\n+\n+\tpublic RabbitManagementTemplate() {\n+\t\tthis(\"http://localhost:15672/api/\", \"guest\", \"guest\");\n+\t}\n+\n+\tpublic RabbitManagementTemplate(String baseUri, String user, String password) {\n+\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n+\t\tcredsProvider.setCredentials(\n+\t\t\t\tnew AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT),\n+\t\t\t\tnew UsernamePasswordCredentials(user, password));\n+\t\tHttpClient httpClient = HttpClients.custom().setDefaultCredentialsProvider(credsProvider).build();\n+\t\t// Set up pre-emptive basic Auth because it seems the rabbit plugin doesn't support challenge/response for PUT\n+\t\t// Create AuthCache instance\n+\t\tAuthCache authCache = new BasicAuthCache();\n+\t\t// Generate BASIC scheme object and add it to the local; from the apache docs...\n+\t\t// auth cache\n+\t\tBasicScheme basicAuth = new BasicScheme();\n+\t\tURI uri;\n+\t\ttry {\n+\t\t\turi = new URI(baseUri);\n+\t\t}\n+\t\tcatch (URISyntaxException e) {\n+\t\t\tthrow new AmqpException(\"Invalid URI\", e);\n+\t\t}\n+\t\tauthCache.put(new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme()), basicAuth);\n+\t\t// Add AuthCache to the execution context\n+\t\tfinal HttpClientContext localContext = HttpClientContext.create();\n+\t\tlocalContext.setAuthCache(authCache);\n+\t\tRestTemplate restTemplate = new RestTemplate(new HttpComponentsClientHttpRequestFactory(httpClient) {\n+\n+\t\t\t@Override\n+\t\t\tprotected HttpContext createHttpContext(HttpMethod httpMethod, URI uri) {\n+\t\t\t\treturn localContext;\n+\t\t\t}\n+\n+\t\t});\n+\t\tthis.restTemplate = restTemplate;\n+\t\tthis.baseUri = baseUri;\n+\t}\n+\n+\tpublic RabbitManagementTemplate(String baseUri, RestTemplate restTemplate) {\n+\t\tthis.restTemplate = restTemplate;\n+\t\tthis.baseUri = baseUri;\n+\t}\n+\n+\t@SuppressWarnings(\"unchecked\")\n+\tpublic Map<String, Object> aliveness(String vhost) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"aliveness-test\", \"{vhost}\")\n+\t\t\t\t.buildAndExpand(vhost).encode().toUri();\n+\t\treturn this.restTemplate.getForObject(uri, Map.class);\n+\t}\n+\n+\t@SuppressWarnings(\"unchecked\")\n+\tpublic Map<String, Object> overview() {\n+\t\treturn this.restTemplate.getForObject(baseUri + \"overview\", Map.class);\n+\t}\n+\n+\tpublic List<Policy> policies() {\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> policies = this.restTemplate.getForObject(this.baseUri + \"policies\", List.class);\n+\t\treturn policyMapsToPolicies(policies);\n+\t}\n+\n+\tpublic List<Policy> policies(String vhost) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"policies\", \"{vhost}\")\n+\t\t\t\t.buildAndExpand(vhost).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> policies = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn policyMapsToPolicies(policies);\n+\t}\n+\n+\tpublic void addPolicy(Policy policy) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"policies\", \"{vhost}\", \"{name}\")\n+\t\t\t\t.buildAndExpand(policy.getVhost(), policy.getName()).encode().toUri();\n+\t\tthis.restTemplate.put(uri, policy);\n+\t}\n+\n+\tpublic void removePolicy(String vhost, String name) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"policies\", \"{vhost}\", \"{name}\")\n+\t\t\t\t.buildAndExpand(vhost, name).encode().toUri();\n+\t\tthis.restTemplate.delete(uri);\n+\t}\n+\n+\tpublic List<Exchange> exchanges() {\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> exchangeMaps = this.restTemplate.getForObject(baseUri + \"exchanges\", List.class);\n+\t\treturn exchangeMapsToExchanges(exchangeMaps);\n+\t}\n+\n+\t@SuppressWarnings(\"unchecked\")\n+\tpublic List<Exchange> exchanges(String vhost) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"exchanges\", \"{vhost}\")\n+\t\t\t\t.buildAndExpand(vhost).encode().toUri();\n+\t\tList<Map<String, Object>> exchangeMaps = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn exchangeMapsToExchanges(exchangeMaps);\n+\t}\n+\n+\tpublic Exchange exchange(String vhost, String exchange) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"exchanges\", \"{vhost}\", \"{exchange}\")\n+\t\t\t\t.buildAndExpand(vhost, exchange).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tMap<String, Object> map = this.restTemplate.getForObject(uri, Map.class);\n+\t\treturn exchangeMapToExchange(map);\n+\t}\n+\n+\tpublic List<Queue> queues() {\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> queueMaps = this.restTemplate.getForObject(baseUri + \"queues\", List.class);\n+\t\treturn queueMapsToQueues(queueMaps);\n+\t}\n+\n+\tpublic List<Queue> queues(String vhost) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"queues\", \"{vhost}\")\n+\t\t\t\t.buildAndExpand(vhost).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> queueMaps = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn queueMapsToQueues(queueMaps);\n+\t}\n+\n+\tpublic Queue queue(String vhost, String exchange) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"queues\", \"{vhost}\", \"{queue}\")\n+\t\t\t\t.buildAndExpand(vhost, exchange).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tMap<String, Object> map = this.restTemplate.getForObject(uri, Map.class);\n+\t\treturn queueMapToQueue(map);\n+\t}\n+\n+\tpublic List<Binding> bindings() {\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> bindingMaps = this.restTemplate.getForObject(baseUri + \"bindings\", List.class);\n+\t\treturn bindingMapsToBindings(bindingMaps);\n+\t}\n+\n+\tpublic List<Binding> bindings(String vhost) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(\"bindings\", \"{vhost}\")\n+\t\t\t\t.buildAndExpand(vhost).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> bindingMaps = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn bindingMapsToBindings(bindingMaps);\n+\t}\n+\n+\tpublic List<Binding> exchangeToQueueBindings(String vhost, String exchange, String queue) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri)\n+\t\t\t\t.pathSegment(\"bindings\", \"{vhost}\", \"e\", \"{exchange}\", \"q\", \"{queue}\")\n+\t\t\t\t.buildAndExpand(vhost, exchange, queue).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> list = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn bindingMapsToBindings(list);\n+\t}\n+\n+\tpublic List<Binding> exchangeToExchangeBindings(String vhost, String source, String dest) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri)\n+\t\t\t\t.pathSegment(\"bindings\", \"{vhost}\", \"e\", \"{source}\", \"e\", \"{dest}\")\n+\t\t\t\t.buildAndExpand(vhost, source, dest).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> list = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn bindingMapsToBindings(list);\n+\t}\n+\n+\tpublic List<Binding> exchangeSourceBindings(String vhost, String exchange) {\n+\t\treturn exchangeBindings(vhost, exchange, \"source\");\n+\t}\n+\n+\tpublic List<Binding> exchangeDestBindings(String vhost, String exchange) {\n+\t\treturn exchangeBindings(vhost, exchange, \"destination\");\n+\t}\n+\n+\tprivate List<Binding> exchangeBindings(String vhost, String exchange, String which) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri)\n+\t\t\t\t.pathSegment(\"exchanges\", \"{vhost}\", \"{exchange}\", \"bindings\", which)\n+\t\t\t\t.buildAndExpand(vhost, exchange).encode().toUri();\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tList<Map<String, Object>> list = this.restTemplate.getForObject(uri, List.class);\n+\t\treturn bindingMapsToBindings(list);\n+\t}\n+\n+\t/**\n+\t * Use this to invoke any general GET operation. Useful when invoking methods not supported\n+\t * by a specific method on this class.\n+\t * @param returnType the return type, usually {@link List} or {@link Map}.\n+\t * @param pathSegments the path segments/variable holders, e.g. {@code new String[] { \"connections\", \"{name}\" }.\n+\t * @param uriVariables variables to insert into path place holders.\n+\t * @return the result.\n+\t */\n+\tpublic <T> T executeGet(Class<T> returnType, String[] pathSegments, Object... uriVariables) {\n+\t\tURI uri = UriComponentsBuilder.fromUriString(this.baseUri).pathSegment(pathSegments)\n+\t\t\t\t.buildAndExpand(uriVariables).encode().toUri();\n+\t\treturn this.restTemplate.getForObject(uri, returnType);\n+\t}\n+\n+\tpublic static List<Policy> policyMapsToPolicies(List<Map<String, Object>> policies) {\n+\t\tList<Policy> list = new ArrayList<Policy>(policies.size());\n+\t\tfor (Map<String, Object> map : policies) {\n+\t\t\tlist.add(policyMapToPolicy(map));\n+\t\t}\n+\t\treturn list;\n+\t}\n+\n+\t@SuppressWarnings(\"unchecked\")\n+\tpublic static Policy policyMapToPolicy(Map<String, Object> map) {\n+\t\treturn new Policy((String) map.get(\"vhost\"), (String) map.get(\"name\"),\n+\t\t\t\t(String) map.get(\"pattern\"), (String) map.get(\"apply_to\"), (Integer) map.get(\"priority\"),\n+\t\t\t\t(Map<String, Object>) map.get(\"definition\"));\n+\t}\n+\n+\tpublic static List<Exchange> exchangeMapsToExchanges(List<Map<String, Object>> exchangeMaps) {\n+\t\tList<Exchange> exchanges = new ArrayList<Exchange>(exchangeMaps.size());\n+\t\tfor (Map<String, Object> map : exchangeMaps) {\n+\t\t\texchanges.add(exchangeMapToExchange(map));\n+\t\t}\n+\t\treturn exchanges;\n+\t}\n+\n+\tpublic static Exchange exchangeMapToExchange(Map<String, Object> map) {\n+\t\tAbstractExchange exchange = null;\n+\t\tfinal String type = (String) map.get(\"type\");\n+\t\tString name = (String) map.get(\"name\");\n+\t\tboolean durable = (Boolean) map.get(\"durable\");\n+\t\tboolean autoDelete = (Boolean) map.get(\"auto_delete\");\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tMap<String, Object> arguments = (Map<String, Object>) map.get(\"arguments\");\n+\t\tmap.remove(\"type\");\n+\t\tmap.remove(\"name\");\n+\t\tmap.remove(\"durable\");\n+\t\tmap.remove(\"auto_delete\");\n+\t\tmap.remove(\"arguments\");\n+\t\tif (type.equals(\"direct\")) {\n+\t\t\texchange = new DirectExchange(name, durable, autoDelete, arguments, map);\n+\t\t}\n+\t\telse if (type.equals(\"topic\")) {\n+\t\t\texchange = new TopicExchange(name, durable, autoDelete, arguments, map);\n+\t\t}\n+\t\telse if (type.equals(\"fanout\")) {\n+\t\t\texchange = new FanoutExchange(name, durable, autoDelete, arguments, map);\n+\t\t}\n+\t\telse if (type.equals(\"headers\")) {\n+\t\t\texchange = new HeadersExchange(name, durable, autoDelete, arguments, map);\n+\t\t}\n+\t\telse {\n+\t\t\tclass UnknownExchange extends AbstractExchange {\n+\n+\t\t\t\tpublic UnknownExchange(String name, boolean durable, boolean autoDelete, Map<String, Object> arguments) {\n+\t\t\t\t\tsuper(name, durable, autoDelete, arguments);\n+\t\t\t\t}\n+\n+\t\t\t\t@Override\n+\t\t\t\tpublic String getType() {\n+\t\t\t\t\treturn type;\n+\t\t\t\t}\n+\n+\t\t\t}\n+\t\t\texchange = new UnknownExchange(name, durable, autoDelete, arguments);\n+\t\t}\n+\t\treturn exchange;\n+\t}\n+\n+\tpublic static List<Queue> queueMapsToQueues(List<Map<String, Object>> queueMaps) {\n+\t\tList<Queue> queues = new ArrayList<Queue>(queueMaps.size());\n+\t\tfor (Map<String, Object> map : queueMaps) {\n+\t\t\tqueues.add(queueMapToQueue(map));\n+\t\t}\n+\t\treturn queues;\n+\t}\n+\n+\tpublic static Queue queueMapToQueue(Map<String, Object> map) {\n+\t\tString name = (String) map.get(\"name\");\n+\t\tboolean durable = (Boolean) map.get(\"durable\");\n+\t\tboolean exclusive = false; // not returned (Boolean) map.get(\"exclusive\");","path":"spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitManagementTemplate.java","position":329,"original_position":329,"commit_id":"ac143db1537eda34471ff5c2da30a43a46c88382","original_commit_id":"ac143db1537eda34471ff5c2da30a43a46c88382","user":{"login":"simonmacmullen","id":249691,"avatar_url":"https://avatars.githubusercontent.com/u/249691?v=3","gravatar_id":"","url":"https://api.github.com/users/simonmacmullen","html_url":"https://github.com/simonmacmullen","followers_url":"https://api.github.com/users/simonmacmullen/followers","following_url":"https://api.github.com/users/simonmacmullen/following{/other_user}","gists_url":"https://api.github.com/users/simonmacmullen/gists{/gist_id}","starred_url":"https://api.github.com/users/simonmacmullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonmacmullen/subscriptions","organizations_url":"https://api.github.com/users/simonmacmullen/orgs","repos_url":"https://api.github.com/users/simonmacmullen/repos","events_url":"https://api.github.com/users/simonmacmullen/events{/privacy}","received_events_url":"https://api.github.com/users/simonmacmullen/received_events","type":"User","site_admin":false},"body":"Hmm, I just tested and exclusive_consumer_tag works for me (i.e. it is filled if the queue has an exclusive consumer, as mentioned it's not related to the queue being exclusive).","created_at":"2015-02-04T15:17:00Z","updated_at":"2015-02-04T15:17:00Z","html_url":"https://github.com/spring-projects/spring-amqp/pull/260#discussion_r24089720","pull_request_url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260","_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/comments/24089720"},"html":{"href":"https://github.com/spring-projects/spring-amqp/pull/260#discussion_r24089720"},"pull_request":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260"}}},"pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260","id":28573200,"html_url":"https://github.com/spring-projects/spring-amqp/pull/260","diff_url":"https://github.com/spring-projects/spring-amqp/pull/260.diff","patch_url":"https://github.com/spring-projects/spring-amqp/pull/260.patch","issue_url":"https://api.github.com/repos/spring-projects/spring-amqp/issues/260","number":260,"state":"open","locked":false,"title":"AMQP-473: Add REST RabbitManagementTemplate","user":{"login":"garyrussell","id":483832,"avatar_url":"https://avatars.githubusercontent.com/u/483832?v=3","gravatar_id":"","url":"https://api.github.com/users/garyrussell","html_url":"https://github.com/garyrussell","followers_url":"https://api.github.com/users/garyrussell/followers","following_url":"https://api.github.com/users/garyrussell/following{/other_user}","gists_url":"https://api.github.com/users/garyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/garyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyrussell/subscriptions","organizations_url":"https://api.github.com/users/garyrussell/orgs","repos_url":"https://api.github.com/users/garyrussell/repos","events_url":"https://api.github.com/users/garyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/garyrussell/received_events","type":"User","site_admin":false},"body":"JIRA: https://jira.spring.io/browse/AMQP-473\r\n\r\nRabbitMQ ReST API - Initial PoC\r\n\r\nReST PoC Second Commit\r\n\r\n- Improve URI encoding\r\n- Add ctor with CredentialsProvider\r\n- Convert to Binding\r\n- Add properties field to Binding\r\n\r\nFix Encoding; Remove CredentialsProvider ctor\r\n\r\n- See https://jira.spring.io/browse/SPR-12679\r\n- No need for ctor - user can supply a RestTemplate\r\n\r\nAdd remaining First Class Support Paths\r\n\r\n- Use preemptive basic auth\r\n- Add remaining elements\r\n\r\n__Replaces #259 __","created_at":"2015-02-03T17:48:26Z","updated_at":"2015-02-04T15:17:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"908a1e52da0e0985098010adcbc168140df04450","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260/commits","review_comments_url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260/comments","review_comment_url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/spring-projects/spring-amqp/issues/260/comments","statuses_url":"https://api.github.com/repos/spring-projects/spring-amqp/statuses/ac143db1537eda34471ff5c2da30a43a46c88382","head":{"label":"garyrussell:AMQP-473","ref":"AMQP-473","sha":"ac143db1537eda34471ff5c2da30a43a46c88382","user":{"login":"garyrussell","id":483832,"avatar_url":"https://avatars.githubusercontent.com/u/483832?v=3","gravatar_id":"","url":"https://api.github.com/users/garyrussell","html_url":"https://github.com/garyrussell","followers_url":"https://api.github.com/users/garyrussell/followers","following_url":"https://api.github.com/users/garyrussell/following{/other_user}","gists_url":"https://api.github.com/users/garyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/garyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyrussell/subscriptions","organizations_url":"https://api.github.com/users/garyrussell/orgs","repos_url":"https://api.github.com/users/garyrussell/repos","events_url":"https://api.github.com/users/garyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/garyrussell/received_events","type":"User","site_admin":false},"repo":{"id":3138424,"name":"spring-amqp","full_name":"garyrussell/spring-amqp","owner":{"login":"garyrussell","id":483832,"avatar_url":"https://avatars.githubusercontent.com/u/483832?v=3","gravatar_id":"","url":"https://api.github.com/users/garyrussell","html_url":"https://github.com/garyrussell","followers_url":"https://api.github.com/users/garyrussell/followers","following_url":"https://api.github.com/users/garyrussell/following{/other_user}","gists_url":"https://api.github.com/users/garyrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/garyrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyrussell/subscriptions","organizations_url":"https://api.github.com/users/garyrussell/orgs","repos_url":"https://api.github.com/users/garyrussell/repos","events_url":"https://api.github.com/users/garyrussell/events{/privacy}","received_events_url":"https://api.github.com/users/garyrussell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garyrussell/spring-amqp","description":"Spring AMQP - support for Spring programming model with AMQP, especially but not limited to RabbitMQ","fork":true,"url":"https://api.github.com/repos/garyrussell/spring-amqp","forks_url":"https://api.github.com/repos/garyrussell/spring-amqp/forks","keys_url":"https://api.github.com/repos/garyrussell/spring-amqp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garyrussell/spring-amqp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garyrussell/spring-amqp/teams","hooks_url":"https://api.github.com/repos/garyrussell/spring-amqp/hooks","issue_events_url":"https://api.github.com/repos/garyrussell/spring-amqp/issues/events{/number}","events_url":"https://api.github.com/repos/garyrussell/spring-amqp/events","assignees_url":"https://api.github.com/repos/garyrussell/spring-amqp/assignees{/user}","branches_url":"https://api.github.com/repos/garyrussell/spring-amqp/branches{/branch}","tags_url":"https://api.github.com/repos/garyrussell/spring-amqp/tags","blobs_url":"https://api.github.com/repos/garyrussell/spring-amqp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garyrussell/spring-amqp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garyrussell/spring-amqp/git/refs{/sha}","trees_url":"https://api.github.com/repos/garyrussell/spring-amqp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garyrussell/spring-amqp/statuses/{sha}","languages_url":"https://api.github.com/repos/garyrussell/spring-amqp/languages","stargazers_url":"https://api.github.com/repos/garyrussell/spring-amqp/stargazers","contributors_url":"https://api.github.com/repos/garyrussell/spring-amqp/contributors","subscribers_url":"https://api.github.com/repos/garyrussell/spring-amqp/subscribers","subscription_url":"https://api.github.com/repos/garyrussell/spring-amqp/subscription","commits_url":"https://api.github.com/repos/garyrussell/spring-amqp/commits{/sha}","git_commits_url":"https://api.github.com/repos/garyrussell/spring-amqp/git/commits{/sha}","comments_url":"https://api.github.com/repos/garyrussell/spring-amqp/comments{/number}","issue_comment_url":"https://api.github.com/repos/garyrussell/spring-amqp/issues/comments/{number}","contents_url":"https://api.github.com/repos/garyrussell/spring-amqp/contents/{+path}","compare_url":"https://api.github.com/repos/garyrussell/spring-amqp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garyrussell/spring-amqp/merges","archive_url":"https://api.github.com/repos/garyrussell/spring-amqp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garyrussell/spring-amqp/downloads","issues_url":"https://api.github.com/repos/garyrussell/spring-amqp/issues{/number}","pulls_url":"https://api.github.com/repos/garyrussell/spring-amqp/pulls{/number}","milestones_url":"https://api.github.com/repos/garyrussell/spring-amqp/milestones{/number}","notifications_url":"https://api.github.com/repos/garyrussell/spring-amqp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garyrussell/spring-amqp/labels{/name}","releases_url":"https://api.github.com/repos/garyrussell/spring-amqp/releases{/id}","created_at":"2012-01-09T17:21:18Z","updated_at":"2015-01-31T09:41:46Z","pushed_at":"2015-02-03T17:45:24Z","git_url":"git://github.com/garyrussell/spring-amqp.git","ssh_url":"git@github.com:garyrussell/spring-amqp.git","clone_url":"https://github.com/garyrussell/spring-amqp.git","svn_url":"https://github.com/garyrussell/spring-amqp","homepage":"http://www.springsource.org/spring-amqp","size":6923,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"spring-projects:master","ref":"master","sha":"382b7c5ce70453adc9f0db58a0ad80a385f183a4","user":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":1088796,"name":"spring-amqp","full_name":"spring-projects/spring-amqp","owner":{"login":"spring-projects","id":317776,"avatar_url":"https://avatars.githubusercontent.com/u/317776?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-projects","html_url":"https://github.com/spring-projects","followers_url":"https://api.github.com/users/spring-projects/followers","following_url":"https://api.github.com/users/spring-projects/following{/other_user}","gists_url":"https://api.github.com/users/spring-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-projects/subscriptions","organizations_url":"https://api.github.com/users/spring-projects/orgs","repos_url":"https://api.github.com/users/spring-projects/repos","events_url":"https://api.github.com/users/spring-projects/events{/privacy}","received_events_url":"https://api.github.com/users/spring-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-projects/spring-amqp","description":"Spring AMQP - support for Spring programming model with AMQP, especially but not limited to RabbitMQ","fork":false,"url":"https://api.github.com/repos/spring-projects/spring-amqp","forks_url":"https://api.github.com/repos/spring-projects/spring-amqp/forks","keys_url":"https://api.github.com/repos/spring-projects/spring-amqp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-projects/spring-amqp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-projects/spring-amqp/teams","hooks_url":"https://api.github.com/repos/spring-projects/spring-amqp/hooks","issue_events_url":"https://api.github.com/repos/spring-projects/spring-amqp/issues/events{/number}","events_url":"https://api.github.com/repos/spring-projects/spring-amqp/events","assignees_url":"https://api.github.com/repos/spring-projects/spring-amqp/assignees{/user}","branches_url":"https://api.github.com/repos/spring-projects/spring-amqp/branches{/branch}","tags_url":"https://api.github.com/repos/spring-projects/spring-amqp/tags","blobs_url":"https://api.github.com/repos/spring-projects/spring-amqp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-projects/spring-amqp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-projects/spring-amqp/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-projects/spring-amqp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-projects/spring-amqp/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-projects/spring-amqp/languages","stargazers_url":"https://api.github.com/repos/spring-projects/spring-amqp/stargazers","contributors_url":"https://api.github.com/repos/spring-projects/spring-amqp/contributors","subscribers_url":"https://api.github.com/repos/spring-projects/spring-amqp/subscribers","subscription_url":"https://api.github.com/repos/spring-projects/spring-amqp/subscription","commits_url":"https://api.github.com/repos/spring-projects/spring-amqp/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-projects/spring-amqp/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-projects/spring-amqp/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-projects/spring-amqp/issues/comments/{number}","contents_url":"https://api.github.com/repos/spring-projects/spring-amqp/contents/{+path}","compare_url":"https://api.github.com/repos/spring-projects/spring-amqp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-projects/spring-amqp/merges","archive_url":"https://api.github.com/repos/spring-projects/spring-amqp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-projects/spring-amqp/downloads","issues_url":"https://api.github.com/repos/spring-projects/spring-amqp/issues{/number}","pulls_url":"https://api.github.com/repos/spring-projects/spring-amqp/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-projects/spring-amqp/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-projects/spring-amqp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-projects/spring-amqp/labels{/name}","releases_url":"https://api.github.com/repos/spring-projects/spring-amqp/releases{/id}","created_at":"2010-11-17T15:50:16Z","updated_at":"2015-02-04T11:46:33Z","pushed_at":"2015-02-02T16:50:27Z","git_url":"git://github.com/spring-projects/spring-amqp.git","ssh_url":"git@github.com:spring-projects/spring-amqp.git","clone_url":"https://github.com/spring-projects/spring-amqp.git","svn_url":"https://github.com/spring-projects/spring-amqp","homepage":"http://www.springsource.org/spring-amqp","size":9516,"stargazers_count":146,"watchers_count":146,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":127,"mirror_url":null,"open_issues_count":1,"forks":127,"open_issues":1,"watchers":146,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260"},"html":{"href":"https://github.com/spring-projects/spring-amqp/pull/260"},"issue":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/issues/260"},"comments":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/pulls/260/commits"},"statuses":{"href":"https://api.github.com/repos/spring-projects/spring-amqp/statuses/ac143db1537eda34471ff5c2da30a43a46c88382"}}}}