(URL url)
| 36 | } |
| 37 | |
| 38 | private String urlToOrigin(URL url) { |
| 39 | int port = url.getPort(); |
| 40 | if (port == -1) { |
| 41 | port = "http".equals(url.getProtocol()) ? 80 : 443; |
| 42 | } |
| 43 | return url.getProtocol() + "://" + url.getHost() + ":" + port; |
| 44 | } |
| 45 | |
| 46 | private HashMap<String, String> parseCookie(String cookie) { |
| 47 | String[] keyValuePairs; |
no outgoing calls
no test coverage detected