(URL url)
| 46 | } |
| 47 | |
| 48 | private String urlToOrigin(URL url) { |
| 49 | int port = url.getPort(); |
| 50 | if (port == -1) { |
| 51 | if ("http".equals(url.getProtocol())) { |
| 52 | port = 80; |
| 53 | } else { |
| 54 | port = 443; |
| 55 | } |
| 56 | } |
| 57 | return url.getProtocol() + "://" + url.getHost() + ":" + port; |
| 58 | } |
| 59 | |
| 60 | private HashMap<String, String> parseCookie(String cookie) { |
| 61 | HashMap<String, String> result = new HashMap<>(); |
no outgoing calls
no test coverage detected