()
| 80 | } |
| 81 | |
| 82 | public String getProtocol() { |
| 83 | String s = u.toASCIIString(); |
| 84 | if (s.startsWith("https")) { |
| 85 | return "https"; |
| 86 | } |
| 87 | if (s.startsWith("file")) { |
| 88 | return "file"; |
| 89 | } |
| 90 | return "http"; |
| 91 | } |
| 92 | |
| 93 | public String getHost() { |
| 94 | return u.getHost(); |