{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/34496204","id":34496204,"diff_hunk":"@@ -0,0 +1,168 @@\n+/*\n+ * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *\n+ * WSO2 Inc. licenses this file to you under the Apache License,\n+ * Version 2.0 (the \"License\"); you may not use this file except\n+ * 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,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.apache.synapse.transport.dynamicconfigurations;\n+\n+import org.apache.axiom.om.OMElement;\n+import org.apache.axis2.description.Parameter;\n+import org.apache.axis2.description.ParameterInclude;\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+\n+import javax.xml.namespace.QName;\n+\n+/**\n+ * Abstract class to use as Profile Reloader Subscribers. FileUpdateNotificationHandler will notify\n+ * this once the event is triggered.\n+ */\n+public abstract class DynamicProfileReloader {\n+\n+    private static final Log LOG = LogFactory.getLog(DynamicProfileReloader.class);\n+\n+    /* XML parameter name for dynamic profiles in Axis2 config */\n+    private final String profileConfigName = \"dynamicSSLProfilesConfig\";\n+\n+    /* XML element name for dynamic profiles configuration path in Axis2 config */\n+    private final String pathConfigName = \"filePath\";","path":"modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/dynamicconfigurations/DynamicProfileReloader.java","position":41,"original_position":41,"commit_id":"0a23dc6483def99acb8a847fb2e206126ad87f49","original_commit_id":"0a23dc6483def99acb8a847fb2e206126ad87f49","user":{"login":"prabathabey","id":6664125,"avatar_url":"https://avatars.githubusercontent.com/u/6664125?v=3","gravatar_id":"","url":"https://api.github.com/users/prabathabey","html_url":"https://github.com/prabathabey","followers_url":"https://api.github.com/users/prabathabey/followers","following_url":"https://api.github.com/users/prabathabey/following{/other_user}","gists_url":"https://api.github.com/users/prabathabey/gists{/gist_id}","starred_url":"https://api.github.com/users/prabathabey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabathabey/subscriptions","organizations_url":"https://api.github.com/users/prabathabey/orgs","repos_url":"https://api.github.com/users/prabathabey/repos","events_url":"https://api.github.com/users/prabathabey/events{/privacy}","received_events_url":"https://api.github.com/users/prabathabey/received_events","type":"User","site_admin":false},"body":"Same goes here as well.","created_at":"2015-07-13T18:40:13Z","updated_at":"2015-07-13T18:40:13Z","html_url":"https://github.com/wso2/wso2-synapse/pull/138#discussion_r34496204","pull_request_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/34496204"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/138#discussion_r34496204"},"pull_request":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138","id":32982296,"html_url":"https://github.com/wso2/wso2-synapse/pull/138","diff_url":"https://github.com/wso2/wso2-synapse/pull/138.diff","patch_url":"https://github.com/wso2/wso2-synapse/pull/138.patch","issue_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/138","number":138,"state":"closed","locked":false,"title":"Dynamic SSL profiles loading changes for Listeners and Senders","user":{"login":"jagathsisira","id":11496067,"avatar_url":"https://avatars.githubusercontent.com/u/11496067?v=3","gravatar_id":"","url":"https://api.github.com/users/jagathsisira","html_url":"https://github.com/jagathsisira","followers_url":"https://api.github.com/users/jagathsisira/followers","following_url":"https://api.github.com/users/jagathsisira/following{/other_user}","gists_url":"https://api.github.com/users/jagathsisira/gists{/gist_id}","starred_url":"https://api.github.com/users/jagathsisira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagathsisira/subscriptions","organizations_url":"https://api.github.com/users/jagathsisira/orgs","repos_url":"https://api.github.com/users/jagathsisira/repos","events_url":"https://api.github.com/users/jagathsisira/events{/privacy}","received_events_url":"https://api.github.com/users/jagathsisira/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-09T18:24:14Z","updated_at":"2015-07-13T18:40:13Z","closed_at":"2015-04-10T11:37:38Z","merged_at":"2015-04-10T11:37:38Z","merge_commit_sha":"860b5f4d99d531e8449ac0e4e2fd61c905d925a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138/commits","review_comments_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138/comments","review_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/138/comments","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/0a23dc6483def99acb8a847fb2e206126ad87f49","head":{"label":"jagathsisira:DynamicSSLProfiles","ref":"DynamicSSLProfiles","sha":"0a23dc6483def99acb8a847fb2e206126ad87f49","user":{"login":"jagathsisira","id":11496067,"avatar_url":"https://avatars.githubusercontent.com/u/11496067?v=3","gravatar_id":"","url":"https://api.github.com/users/jagathsisira","html_url":"https://github.com/jagathsisira","followers_url":"https://api.github.com/users/jagathsisira/followers","following_url":"https://api.github.com/users/jagathsisira/following{/other_user}","gists_url":"https://api.github.com/users/jagathsisira/gists{/gist_id}","starred_url":"https://api.github.com/users/jagathsisira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagathsisira/subscriptions","organizations_url":"https://api.github.com/users/jagathsisira/orgs","repos_url":"https://api.github.com/users/jagathsisira/repos","events_url":"https://api.github.com/users/jagathsisira/events{/privacy}","received_events_url":"https://api.github.com/users/jagathsisira/received_events","type":"User","site_admin":false},"repo":{"id":32304061,"name":"wso2-synapse","full_name":"jagathsisira/wso2-synapse","owner":{"login":"jagathsisira","id":11496067,"avatar_url":"https://avatars.githubusercontent.com/u/11496067?v=3","gravatar_id":"","url":"https://api.github.com/users/jagathsisira","html_url":"https://github.com/jagathsisira","followers_url":"https://api.github.com/users/jagathsisira/followers","following_url":"https://api.github.com/users/jagathsisira/following{/other_user}","gists_url":"https://api.github.com/users/jagathsisira/gists{/gist_id}","starred_url":"https://api.github.com/users/jagathsisira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagathsisira/subscriptions","organizations_url":"https://api.github.com/users/jagathsisira/orgs","repos_url":"https://api.github.com/users/jagathsisira/repos","events_url":"https://api.github.com/users/jagathsisira/events{/privacy}","received_events_url":"https://api.github.com/users/jagathsisira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jagathsisira/wso2-synapse","description":"","fork":true,"url":"https://api.github.com/repos/jagathsisira/wso2-synapse","forks_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/forks","keys_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/events","assignees_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/merges","archive_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/jagathsisira/wso2-synapse/releases{/id}","created_at":"2015-03-16T05:47:32Z","updated_at":"2015-03-16T05:47:38Z","pushed_at":"2015-07-13T05:12:43Z","git_url":"git://github.com/jagathsisira/wso2-synapse.git","ssh_url":"git@github.com:jagathsisira/wso2-synapse.git","clone_url":"https://github.com/jagathsisira/wso2-synapse.git","svn_url":"https://github.com/jagathsisira/wso2-synapse","homepage":null,"size":9969,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"wso2:develop","ref":"develop","sha":"9ceae7c255cd0d5da036e7edbd909ca0d9b898ab","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16471584,"name":"wso2-synapse","full_name":"wso2/wso2-synapse","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/wso2-synapse","description":"","fork":false,"url":"https://api.github.com/repos/wso2/wso2-synapse","forks_url":"https://api.github.com/repos/wso2/wso2-synapse/forks","keys_url":"https://api.github.com/repos/wso2/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/wso2/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/wso2-synapse/events","assignees_url":"https://api.github.com/repos/wso2/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/wso2/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/wso2/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/wso2/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/wso2/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/wso2/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/wso2-synapse/merges","archive_url":"https://api.github.com/repos/wso2/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/wso2/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/wso2/wso2-synapse/releases{/id}","created_at":"2014-02-03T06:28:42Z","updated_at":"2015-07-08T09:15:29Z","pushed_at":"2015-07-13T04:19:11Z","git_url":"git://github.com/wso2/wso2-synapse.git","ssh_url":"git@github.com:wso2/wso2-synapse.git","clone_url":"https://github.com/wso2/wso2-synapse.git","svn_url":"https://github.com/wso2/wso2-synapse","homepage":null,"size":12837,"stargazers_count":9,"watchers_count":9,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"open_issues_count":28,"forks":114,"open_issues":28,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/138"},"issue":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/138"},"comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/wso2-synapse/statuses/0a23dc6483def99acb8a847fb2e206126ad87f49"}}}}