{"action":"created","comment":{"url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/comments/210005298","pull_request_review_id":146131182,"id":210005298,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDAwNTI5OA==","diff_hunk":"@@ -266,174 +293,11 @@ private String extractCookieByKey(String cookie, String key) {\n         return cookieValue;\n     }\n \n-    private Map<String, String> extractPXCookies(String cookie) {\n-        Map<String, String> cookieValue = new HashMap<>();\n-        if (!StringUtils.isEmpty(cookie)) {\n-            String[] cookies = cookie.split(\";\\\\s?\");\n-            for (String c : cookies) {\n-                String[] splicedCookie = c.split(\"=\", 2);\n-                String cookiePayload;\n-                try {\n-                \tcookiePayload = URLDecoder.decode(splicedCookie[1], \"UTF-8\").replaceAll(\" \", \"+\");\n-                } catch (UnsupportedEncodingException e) {\n-                \tcookiePayload = splicedCookie[1];\n-                }\n-                switch (splicedCookie[0]) {\n-                    case Constants.COOKIE_V1_KEY:\n-                        cookieValue.put(Constants.COOKIE_V1_KEY, cookiePayload);\n-                        break;\n-                    case Constants.COOKIE_V3_KEY:\n-                        cookieValue.put(Constants.COOKIE_V3_KEY, cookiePayload);\n-                        break;\n-                }\n-            }\n-        }\n-        return cookieValue;\n-    }\n-\n-    private Map<String, String> extractPXMobileCookie(String cookieString) {\n-        Map<String, String> cookieMap = new HashMap<>();\n-        String[] cookieParts;\n-        String cookieFirstPart;\n-        String cookieVersion;\n-\n-        if (cookieString != null && !cookieString.isEmpty()) {\n-            cookieParts = cookieString.split(Constants.COOKIE_EXTRACT_DELIMITER_MOBILE, 2);\n-            cookieFirstPart = cookieParts[0];\n-\n-            //Mobile Error\n-            if (cookieParts.length == 1) {\n-                cookieMap.put(Constants.COOKIE_V3_KEY, cookieFirstPart);\n-            }\n-            //Mobile cookie\n-            else if (cookieParts.length == 2) {\n-                cookieVersion = AbstractPXCookie.getMobileCookieVersion(cookieParts[0]);\n-                cookieMap.put(cookieVersion, cookieParts[1]);\n-            }\n-        }\n-\n-        return cookieMap;\n-    }\n-\n-    public String getPxCookie() {","path":"src/main/java/com/perimeterx/models/PXContext.java","position":223,"original_position":223,"commit_id":"568538c1b2291529b535fc708c351cbe2cc15d47","original_commit_id":"568538c1b2291529b535fc708c351cbe2cc15d47","user":{"login":"yaronpx","id":26110560,"node_id":"MDQ6VXNlcjI2MTEwNTYw","avatar_url":"https://avatars3.githubusercontent.com/u/26110560?v=4","gravatar_id":"","url":"https://api.github.com/users/yaronpx","html_url":"https://github.com/yaronpx","followers_url":"https://api.github.com/users/yaronpx/followers","following_url":"https://api.github.com/users/yaronpx/following{/other_user}","gists_url":"https://api.github.com/users/yaronpx/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronpx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronpx/subscriptions","organizations_url":"https://api.github.com/users/yaronpx/orgs","repos_url":"https://api.github.com/users/yaronpx/repos","events_url":"https://api.github.com/users/yaronpx/events{/privacy}","received_events_url":"https://api.github.com/users/yaronpx/received_events","type":"User","site_admin":false},"body":"a lot of deleted getters and setters here. never used them?","created_at":"2018-08-14T15:50:26Z","updated_at":"2018-08-14T15:50:26Z","html_url":"https://github.com/PerimeterX/perimeterx-java-sdk/pull/54#discussion_r210005298","pull_request_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/comments/210005298"},"html":{"href":"https://github.com/PerimeterX/perimeterx-java-sdk/pull/54#discussion_r210005298"},"pull_request":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54","id":208304350,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4MzA0MzUw","html_url":"https://github.com/PerimeterX/perimeterx-java-sdk/pull/54","diff_url":"https://github.com/PerimeterX/perimeterx-java-sdk/pull/54.diff","patch_url":"https://github.com/PerimeterX/perimeterx-java-sdk/pull/54.patch","issue_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/54","number":54,"state":"open","locked":false,"title":"Dev add px tokens","user":{"login":"alexbpx","id":41577203,"node_id":"MDQ6VXNlcjQxNTc3MjAz","avatar_url":"https://avatars2.githubusercontent.com/u/41577203?v=4","gravatar_id":"","url":"https://api.github.com/users/alexbpx","html_url":"https://github.com/alexbpx","followers_url":"https://api.github.com/users/alexbpx/followers","following_url":"https://api.github.com/users/alexbpx/following{/other_user}","gists_url":"https://api.github.com/users/alexbpx/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbpx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbpx/subscriptions","organizations_url":"https://api.github.com/users/alexbpx/orgs","repos_url":"https://api.github.com/users/alexbpx/repos","events_url":"https://api.github.com/users/alexbpx/events{/privacy}","received_events_url":"https://api.github.com/users/alexbpx/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-14T14:37:25Z","updated_at":"2018-08-14T15:50:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cc1ef6673409a95a89069ebb9f35d5c327cc9e1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54/commits","review_comments_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54/comments","review_comment_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/54/comments","statuses_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/statuses/568538c1b2291529b535fc708c351cbe2cc15d47","head":{"label":"PerimeterX:dev-add-px-tokens","ref":"dev-add-px-tokens","sha":"568538c1b2291529b535fc708c351cbe2cc15d47","user":{"login":"PerimeterX","id":10051748,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUxNzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/10051748?v=4","gravatar_id":"","url":"https://api.github.com/users/PerimeterX","html_url":"https://github.com/PerimeterX","followers_url":"https://api.github.com/users/PerimeterX/followers","following_url":"https://api.github.com/users/PerimeterX/following{/other_user}","gists_url":"https://api.github.com/users/PerimeterX/gists{/gist_id}","starred_url":"https://api.github.com/users/PerimeterX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerimeterX/subscriptions","organizations_url":"https://api.github.com/users/PerimeterX/orgs","repos_url":"https://api.github.com/users/PerimeterX/repos","events_url":"https://api.github.com/users/PerimeterX/events{/privacy}","received_events_url":"https://api.github.com/users/PerimeterX/received_events","type":"Organization","site_admin":false},"repo":{"id":62501630,"node_id":"MDEwOlJlcG9zaXRvcnk2MjUwMTYzMA==","name":"perimeterx-java-sdk","full_name":"PerimeterX/perimeterx-java-sdk","owner":{"login":"PerimeterX","id":10051748,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUxNzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/10051748?v=4","gravatar_id":"","url":"https://api.github.com/users/PerimeterX","html_url":"https://github.com/PerimeterX","followers_url":"https://api.github.com/users/PerimeterX/followers","following_url":"https://api.github.com/users/PerimeterX/following{/other_user}","gists_url":"https://api.github.com/users/PerimeterX/gists{/gist_id}","starred_url":"https://api.github.com/users/PerimeterX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerimeterX/subscriptions","organizations_url":"https://api.github.com/users/PerimeterX/orgs","repos_url":"https://api.github.com/users/PerimeterX/repos","events_url":"https://api.github.com/users/PerimeterX/events{/privacy}","received_events_url":"https://api.github.com/users/PerimeterX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PerimeterX/perimeterx-java-sdk","description":"PerimeterX JAVA SDK","fork":false,"url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk","forks_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/forks","keys_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/teams","hooks_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/hooks","issue_events_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/events","assignees_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/tags","blobs_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/languages","stargazers_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/stargazers","contributors_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/contributors","subscribers_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/subscribers","subscription_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/subscription","commits_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/merges","archive_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/downloads","issues_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/deployments","created_at":"2016-07-03T15:01:58Z","updated_at":"2018-08-07T11:25:21Z","pushed_at":"2018-08-14T14:37:25Z","git_url":"git://github.com/PerimeterX/perimeterx-java-sdk.git","ssh_url":"git@github.com:PerimeterX/perimeterx-java-sdk.git","clone_url":"https://github.com/PerimeterX/perimeterx-java-sdk.git","svn_url":"https://github.com/PerimeterX/perimeterx-java-sdk","homepage":"http://www.perimeterx.com","size":890,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":3,"watchers":10,"default_branch":"master"}},"base":{"label":"PerimeterX:dev","ref":"dev","sha":"3175cd75d4483a60ec85faf6925d80334c576aa0","user":{"login":"PerimeterX","id":10051748,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUxNzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/10051748?v=4","gravatar_id":"","url":"https://api.github.com/users/PerimeterX","html_url":"https://github.com/PerimeterX","followers_url":"https://api.github.com/users/PerimeterX/followers","following_url":"https://api.github.com/users/PerimeterX/following{/other_user}","gists_url":"https://api.github.com/users/PerimeterX/gists{/gist_id}","starred_url":"https://api.github.com/users/PerimeterX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerimeterX/subscriptions","organizations_url":"https://api.github.com/users/PerimeterX/orgs","repos_url":"https://api.github.com/users/PerimeterX/repos","events_url":"https://api.github.com/users/PerimeterX/events{/privacy}","received_events_url":"https://api.github.com/users/PerimeterX/received_events","type":"Organization","site_admin":false},"repo":{"id":62501630,"node_id":"MDEwOlJlcG9zaXRvcnk2MjUwMTYzMA==","name":"perimeterx-java-sdk","full_name":"PerimeterX/perimeterx-java-sdk","owner":{"login":"PerimeterX","id":10051748,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDUxNzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/10051748?v=4","gravatar_id":"","url":"https://api.github.com/users/PerimeterX","html_url":"https://github.com/PerimeterX","followers_url":"https://api.github.com/users/PerimeterX/followers","following_url":"https://api.github.com/users/PerimeterX/following{/other_user}","gists_url":"https://api.github.com/users/PerimeterX/gists{/gist_id}","starred_url":"https://api.github.com/users/PerimeterX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PerimeterX/subscriptions","organizations_url":"https://api.github.com/users/PerimeterX/orgs","repos_url":"https://api.github.com/users/PerimeterX/repos","events_url":"https://api.github.com/users/PerimeterX/events{/privacy}","received_events_url":"https://api.github.com/users/PerimeterX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PerimeterX/perimeterx-java-sdk","description":"PerimeterX JAVA SDK","fork":false,"url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk","forks_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/forks","keys_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/teams","hooks_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/hooks","issue_events_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/events","assignees_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/tags","blobs_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/languages","stargazers_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/stargazers","contributors_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/contributors","subscribers_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/subscribers","subscription_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/subscription","commits_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/merges","archive_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/downloads","issues_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/labels{/name}","releases_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/deployments","created_at":"2016-07-03T15:01:58Z","updated_at":"2018-08-07T11:25:21Z","pushed_at":"2018-08-14T14:37:25Z","git_url":"git://github.com/PerimeterX/perimeterx-java-sdk.git","ssh_url":"git@github.com:PerimeterX/perimeterx-java-sdk.git","clone_url":"https://github.com/PerimeterX/perimeterx-java-sdk.git","svn_url":"https://github.com/PerimeterX/perimeterx-java-sdk","homepage":"http://www.perimeterx.com","size":890,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54"},"html":{"href":"https://github.com/PerimeterX/perimeterx-java-sdk/pull/54"},"issue":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/54"},"comments":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/PerimeterX/perimeterx-java-sdk/statuses/568538c1b2291529b535fc708c351cbe2cc15d47"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yaronpx"}}