MCPcopy Index your code
hub / github.com/XF-FS/APIKit / parseCookie

Method parseCookie

src/main/java/burp/CookieManager.java:46–59  ·  view source on GitHub ↗
(String cookie)

Source from the content-addressed store, hash-verified

44 }
45
46 private HashMap<String, String> parseCookie(String cookie) {
47 String[] keyValuePairs;
48 HashMap<String, String> result = new HashMap<String, String>();
49 for (String keyValuePair : keyValuePairs = cookie.split(";")) {
50 String[] keyValue = (keyValuePair = keyValuePair.trim()).split("=", 2);
51 if ("".equals(keyValue[0])) continue;
52 if (keyValue.length == 2) {
53 result.put(keyValue[0], keyValue[1]);
54 continue;
55 }
56 result.put(keyValue[0], "");
57 }
58 return result;
59 }
60
61 private String joinCookieKeyValue(HashMap<String, String> cookie) {
62 StringBuilder builder = new StringBuilder();

Callers 1

processHttpMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected