{"action":"created","issue":{"url":"https://api.github.com/repos/netty/netty/issues/4592","labels_url":"https://api.github.com/repos/netty/netty/issues/4592/labels{/name}","comments_url":"https://api.github.com/repos/netty/netty/issues/4592/comments","events_url":"https://api.github.com/repos/netty/netty/issues/4592/events","html_url":"https://github.com/netty/netty/pull/4592","id":122885409,"number":4592,"title":"Add AcceptLogic & AcceptLogicProvider to ServerBootstrap class.","user":{"login":"hepin1989","id":501740,"avatar_url":"https://avatars.githubusercontent.com/u/501740?v=3","gravatar_id":"","url":"https://api.github.com/users/hepin1989","html_url":"https://github.com/hepin1989","followers_url":"https://api.github.com/users/hepin1989/followers","following_url":"https://api.github.com/users/hepin1989/following{/other_user}","gists_url":"https://api.github.com/users/hepin1989/gists{/gist_id}","starred_url":"https://api.github.com/users/hepin1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hepin1989/subscriptions","organizations_url":"https://api.github.com/users/hepin1989/orgs","repos_url":"https://api.github.com/users/hepin1989/repos","events_url":"https://api.github.com/users/hepin1989/events{/privacy}","received_events_url":"https://api.github.com/users/hepin1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-18T06:12:31Z","updated_at":"2015-12-18T06:46:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/netty/netty/pulls/4592","html_url":"https://github.com/netty/netty/pull/4592","diff_url":"https://github.com/netty/netty/pull/4592.diff","patch_url":"https://github.com/netty/netty/pull/4592.patch"},"body":"Motivation:\r\nCurrently the ServerBootstrap automatically accept the child Channel and then register it to the EventLoop,there is no way to specify any logic for how to handle the accepting.\r\n\r\nModifications:\r\nAdd AcceptLogic,AcceptLogicProvider and associated methods,keep the same behavior if no accept logic is provided as it was before.\r\n\r\nResult:\r\nCould specify a AcceptLogic by AcceptLogicProvider now."},"comment":{"url":"https://api.github.com/repos/netty/netty/issues/comments/165692206","html_url":"https://github.com/netty/netty/pull/4592#issuecomment-165692206","issue_url":"https://api.github.com/repos/netty/netty/issues/4592","id":165692206,"user":{"login":"trustin","id":173918,"avatar_url":"https://avatars.githubusercontent.com/u/173918?v=3","gravatar_id":"","url":"https://api.github.com/users/trustin","html_url":"https://github.com/trustin","followers_url":"https://api.github.com/users/trustin/followers","following_url":"https://api.github.com/users/trustin/following{/other_user}","gists_url":"https://api.github.com/users/trustin/gists{/gist_id}","starred_url":"https://api.github.com/users/trustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trustin/subscriptions","organizations_url":"https://api.github.com/users/trustin/orgs","repos_url":"https://api.github.com/users/trustin/repos","events_url":"https://api.github.com/users/trustin/events{/privacy}","received_events_url":"https://api.github.com/users/trustin/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T06:46:57Z","updated_at":"2015-12-18T06:46:57Z","body":"You could use `ServerBootstraop.handler()`, no?"}}