{"action":"created","comment":{"url":"https://api.github.com/repos/openhab/openhab2/pulls/comments/28180579","id":28180579,"diff_hunk":"@@ -0,0 +1,171 @@\n+/**\n+* Copyright (c) 2014 openHAB UG (haftungsbeschraenkt) and others.\n+* All rights reserved. This program and the accompanying materials\n+* are made available under the terms of the Eclipse Public License v1.0\n+* which accompanies this distribution, and is available at\n+* http://www.eclipse.org/legal/epl-v10.html\n+*/\n+package org.openhab.binding.cups.handler;\n+\n+import java.util.HashSet;\n+import java.util.List;\n+import java.util.concurrent.CopyOnWriteArrayList;\n+import java.util.concurrent.ScheduledFuture;\n+import java.util.concurrent.TimeUnit;\n+\n+import org.cups4j.CupsClient;\n+import org.cups4j.CupsPrinter;\n+import org.eclipse.smarthome.config.core.Configuration;\n+import org.eclipse.smarthome.core.thing.Bridge;\n+import org.eclipse.smarthome.core.thing.ChannelUID;\n+import org.eclipse.smarthome.core.thing.binding.BaseBridgeHandler;\n+import org.eclipse.smarthome.core.types.Command;\n+import org.eclipse.smarthome.core.types.RefreshType;\n+import org.openhab.binding.cups.CupsBindingConstants;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+public class CupsBridgeHandler extends BaseBridgeHandler {","path":"addons/binding/org.openhab.binding.cups/src/main/java/org/openhab/binding/cups/handler/CupsBridgeHandler.java","position":28,"original_position":28,"commit_id":"b6a4c36140dbd9fa79951ea40a40f6cef8809ba5","original_commit_id":"b6a4c36140dbd9fa79951ea40a40f6cef8809ba5","user":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"body":"Please add a short JavaDoc here, including an author tag.","created_at":"2015-04-10T21:07:41Z","updated_at":"2015-04-10T21:07:41Z","html_url":"https://github.com/openhab/openhab2/pull/164#discussion_r28180579","pull_request_url":"https://api.github.com/repos/openhab/openhab2/pulls/164","_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/comments/28180579"},"html":{"href":"https://github.com/openhab/openhab2/pull/164#discussion_r28180579"},"pull_request":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/openhab/openhab2/pulls/164","id":31348503,"html_url":"https://github.com/openhab/openhab2/pull/164","diff_url":"https://github.com/openhab/openhab2/pull/164.diff","patch_url":"https://github.com/openhab/openhab2/pull/164.patch","issue_url":"https://api.github.com/repos/openhab/openhab2/issues/164","number":164,"state":"open","locked":false,"title":"initial contribution of Cups binding","user":{"login":"peuter","id":5507035,"avatar_url":"https://avatars.githubusercontent.com/u/5507035?v=3","gravatar_id":"","url":"https://api.github.com/users/peuter","html_url":"https://github.com/peuter","followers_url":"https://api.github.com/users/peuter/followers","following_url":"https://api.github.com/users/peuter/following{/other_user}","gists_url":"https://api.github.com/users/peuter/gists{/gist_id}","starred_url":"https://api.github.com/users/peuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peuter/subscriptions","organizations_url":"https://api.github.com/users/peuter/orgs","repos_url":"https://api.github.com/users/peuter/repos","events_url":"https://api.github.com/users/peuter/events{/privacy}","received_events_url":"https://api.github.com/users/peuter/received_events","type":"User","site_admin":false},"body":"including mDNS-based disovery service","created_at":"2015-03-17T15:53:21Z","updated_at":"2015-04-10T21:07:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdd2ec97ad4caa157f33d883cf7c84e0e617f940","assignee":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openhab/openhab2/milestones/1","html_url":"https://github.com/openhab/openhab2/milestones/2.0.0%20alpha2","labels_url":"https://api.github.com/repos/openhab/openhab2/milestones/1/labels","id":1052966,"number":1,"title":"2.0.0 alpha2","description":"This is the milestone for all issues that will be part of the [openHAB 2 alpha 2 release](https://github.com/openhab/openhab2/releases/tag/untagged-3d0b532233e628529db3).","creator":{"login":"kaikreuzer","id":3244965,"avatar_url":"https://avatars.githubusercontent.com/u/3244965?v=3","gravatar_id":"","url":"https://api.github.com/users/kaikreuzer","html_url":"https://github.com/kaikreuzer","followers_url":"https://api.github.com/users/kaikreuzer/followers","following_url":"https://api.github.com/users/kaikreuzer/following{/other_user}","gists_url":"https://api.github.com/users/kaikreuzer/gists{/gist_id}","starred_url":"https://api.github.com/users/kaikreuzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaikreuzer/subscriptions","organizations_url":"https://api.github.com/users/kaikreuzer/orgs","repos_url":"https://api.github.com/users/kaikreuzer/repos","events_url":"https://api.github.com/users/kaikreuzer/events{/privacy}","received_events_url":"https://api.github.com/users/kaikreuzer/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":46,"state":"open","created_at":"2015-04-04T19:33:02Z","updated_at":"2015-04-06T20:24:18Z","due_on":"2015-05-24T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/openhab/openhab2/pulls/164/commits","review_comments_url":"https://api.github.com/repos/openhab/openhab2/pulls/164/comments","review_comment_url":"https://api.github.com/repos/openhab/openhab2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openhab/openhab2/issues/164/comments","statuses_url":"https://api.github.com/repos/openhab/openhab2/statuses/b6a4c36140dbd9fa79951ea40a40f6cef8809ba5","head":{"label":"peuter:cups-binding","ref":"cups-binding","sha":"b6a4c36140dbd9fa79951ea40a40f6cef8809ba5","user":{"login":"peuter","id":5507035,"avatar_url":"https://avatars.githubusercontent.com/u/5507035?v=3","gravatar_id":"","url":"https://api.github.com/users/peuter","html_url":"https://github.com/peuter","followers_url":"https://api.github.com/users/peuter/followers","following_url":"https://api.github.com/users/peuter/following{/other_user}","gists_url":"https://api.github.com/users/peuter/gists{/gist_id}","starred_url":"https://api.github.com/users/peuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peuter/subscriptions","organizations_url":"https://api.github.com/users/peuter/orgs","repos_url":"https://api.github.com/users/peuter/repos","events_url":"https://api.github.com/users/peuter/events{/privacy}","received_events_url":"https://api.github.com/users/peuter/received_events","type":"User","site_admin":false},"repo":{"id":27497639,"name":"openhab2","full_name":"peuter/openhab2","owner":{"login":"peuter","id":5507035,"avatar_url":"https://avatars.githubusercontent.com/u/5507035?v=3","gravatar_id":"","url":"https://api.github.com/users/peuter","html_url":"https://github.com/peuter","followers_url":"https://api.github.com/users/peuter/followers","following_url":"https://api.github.com/users/peuter/following{/other_user}","gists_url":"https://api.github.com/users/peuter/gists{/gist_id}","starred_url":"https://api.github.com/users/peuter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peuter/subscriptions","organizations_url":"https://api.github.com/users/peuter/orgs","repos_url":"https://api.github.com/users/peuter/repos","events_url":"https://api.github.com/users/peuter/events{/privacy}","received_events_url":"https://api.github.com/users/peuter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peuter/openhab2","description":"The next-generation open Home Automation Bus (openHAB)","fork":true,"url":"https://api.github.com/repos/peuter/openhab2","forks_url":"https://api.github.com/repos/peuter/openhab2/forks","keys_url":"https://api.github.com/repos/peuter/openhab2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peuter/openhab2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peuter/openhab2/teams","hooks_url":"https://api.github.com/repos/peuter/openhab2/hooks","issue_events_url":"https://api.github.com/repos/peuter/openhab2/issues/events{/number}","events_url":"https://api.github.com/repos/peuter/openhab2/events","assignees_url":"https://api.github.com/repos/peuter/openhab2/assignees{/user}","branches_url":"https://api.github.com/repos/peuter/openhab2/branches{/branch}","tags_url":"https://api.github.com/repos/peuter/openhab2/tags","blobs_url":"https://api.github.com/repos/peuter/openhab2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peuter/openhab2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peuter/openhab2/git/refs{/sha}","trees_url":"https://api.github.com/repos/peuter/openhab2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peuter/openhab2/statuses/{sha}","languages_url":"https://api.github.com/repos/peuter/openhab2/languages","stargazers_url":"https://api.github.com/repos/peuter/openhab2/stargazers","contributors_url":"https://api.github.com/repos/peuter/openhab2/contributors","subscribers_url":"https://api.github.com/repos/peuter/openhab2/subscribers","subscription_url":"https://api.github.com/repos/peuter/openhab2/subscription","commits_url":"https://api.github.com/repos/peuter/openhab2/commits{/sha}","git_commits_url":"https://api.github.com/repos/peuter/openhab2/git/commits{/sha}","comments_url":"https://api.github.com/repos/peuter/openhab2/comments{/number}","issue_comment_url":"https://api.github.com/repos/peuter/openhab2/issues/comments{/number}","contents_url":"https://api.github.com/repos/peuter/openhab2/contents/{+path}","compare_url":"https://api.github.com/repos/peuter/openhab2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peuter/openhab2/merges","archive_url":"https://api.github.com/repos/peuter/openhab2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peuter/openhab2/downloads","issues_url":"https://api.github.com/repos/peuter/openhab2/issues{/number}","pulls_url":"https://api.github.com/repos/peuter/openhab2/pulls{/number}","milestones_url":"https://api.github.com/repos/peuter/openhab2/milestones{/number}","notifications_url":"https://api.github.com/repos/peuter/openhab2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peuter/openhab2/labels{/name}","releases_url":"https://api.github.com/repos/peuter/openhab2/releases{/id}","created_at":"2014-12-03T16:59:05Z","updated_at":"2015-03-19T17:54:43Z","pushed_at":"2015-04-07T06:57:03Z","git_url":"git://github.com/peuter/openhab2.git","ssh_url":"git@github.com:peuter/openhab2.git","clone_url":"https://github.com/peuter/openhab2.git","svn_url":"https://github.com/peuter/openhab2","homepage":null,"size":16225,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"openhab:master","ref":"master","sha":"ff2e51c8d59faa33857e02ccc8e3b0ab9a2d4ed2","user":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"repo":{"id":19753195,"name":"openhab2","full_name":"openhab/openhab2","owner":{"login":"openhab","id":1007353,"avatar_url":"https://avatars.githubusercontent.com/u/1007353?v=3","gravatar_id":"","url":"https://api.github.com/users/openhab","html_url":"https://github.com/openhab","followers_url":"https://api.github.com/users/openhab/followers","following_url":"https://api.github.com/users/openhab/following{/other_user}","gists_url":"https://api.github.com/users/openhab/gists{/gist_id}","starred_url":"https://api.github.com/users/openhab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openhab/subscriptions","organizations_url":"https://api.github.com/users/openhab/orgs","repos_url":"https://api.github.com/users/openhab/repos","events_url":"https://api.github.com/users/openhab/events{/privacy}","received_events_url":"https://api.github.com/users/openhab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openhab/openhab2","description":"The next-generation open Home Automation Bus (openHAB)","fork":false,"url":"https://api.github.com/repos/openhab/openhab2","forks_url":"https://api.github.com/repos/openhab/openhab2/forks","keys_url":"https://api.github.com/repos/openhab/openhab2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openhab/openhab2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openhab/openhab2/teams","hooks_url":"https://api.github.com/repos/openhab/openhab2/hooks","issue_events_url":"https://api.github.com/repos/openhab/openhab2/issues/events{/number}","events_url":"https://api.github.com/repos/openhab/openhab2/events","assignees_url":"https://api.github.com/repos/openhab/openhab2/assignees{/user}","branches_url":"https://api.github.com/repos/openhab/openhab2/branches{/branch}","tags_url":"https://api.github.com/repos/openhab/openhab2/tags","blobs_url":"https://api.github.com/repos/openhab/openhab2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openhab/openhab2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openhab/openhab2/git/refs{/sha}","trees_url":"https://api.github.com/repos/openhab/openhab2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openhab/openhab2/statuses/{sha}","languages_url":"https://api.github.com/repos/openhab/openhab2/languages","stargazers_url":"https://api.github.com/repos/openhab/openhab2/stargazers","contributors_url":"https://api.github.com/repos/openhab/openhab2/contributors","subscribers_url":"https://api.github.com/repos/openhab/openhab2/subscribers","subscription_url":"https://api.github.com/repos/openhab/openhab2/subscription","commits_url":"https://api.github.com/repos/openhab/openhab2/commits{/sha}","git_commits_url":"https://api.github.com/repos/openhab/openhab2/git/commits{/sha}","comments_url":"https://api.github.com/repos/openhab/openhab2/comments{/number}","issue_comment_url":"https://api.github.com/repos/openhab/openhab2/issues/comments{/number}","contents_url":"https://api.github.com/repos/openhab/openhab2/contents/{+path}","compare_url":"https://api.github.com/repos/openhab/openhab2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openhab/openhab2/merges","archive_url":"https://api.github.com/repos/openhab/openhab2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openhab/openhab2/downloads","issues_url":"https://api.github.com/repos/openhab/openhab2/issues{/number}","pulls_url":"https://api.github.com/repos/openhab/openhab2/pulls{/number}","milestones_url":"https://api.github.com/repos/openhab/openhab2/milestones{/number}","notifications_url":"https://api.github.com/repos/openhab/openhab2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openhab/openhab2/labels{/name}","releases_url":"https://api.github.com/repos/openhab/openhab2/releases{/id}","created_at":"2014-05-13T19:41:58Z","updated_at":"2015-04-08T13:38:20Z","pushed_at":"2015-04-08T18:05:47Z","git_url":"git://github.com/openhab/openhab2.git","ssh_url":"git@github.com:openhab/openhab2.git","clone_url":"https://github.com/openhab/openhab2.git","svn_url":"https://github.com/openhab/openhab2","homepage":null,"size":16754,"stargazers_count":126,"watchers_count":126,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":36,"forks":256,"open_issues":36,"watchers":126,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/164"},"html":{"href":"https://github.com/openhab/openhab2/pull/164"},"issue":{"href":"https://api.github.com/repos/openhab/openhab2/issues/164"},"comments":{"href":"https://api.github.com/repos/openhab/openhab2/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openhab/openhab2/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/openhab/openhab2/statuses/b6a4c36140dbd9fa79951ea40a40f6cef8809ba5"}}}}