Returns a string representation of the Url object. @return a string representation of the Url object.
()
| 1176 | * @return a string representation of the <code>Url</code> object. |
| 1177 | */ |
| 1178 | @Override |
| 1179 | public String toString() { |
| 1180 | final StringBuilder sb = new StringBuilder(); |
| 1181 | |
| 1182 | if (scheme_ != null) { |
| 1183 | sb.append(scheme_).append(':'); |
| 1184 | } |
| 1185 | if (location_ != null) { |
| 1186 | sb.append("//").append(location_); |
| 1187 | } |
| 1188 | if (path_ != null) { |
| 1189 | sb.append(path_); |
| 1190 | } |
| 1191 | if (parameters_ != null) { |
| 1192 | sb.append(';').append(parameters_); |
| 1193 | } |
| 1194 | if (query_ != null) { |
| 1195 | sb.append('?').append(query_); |
| 1196 | } |
| 1197 | if (fragment_ != null) { |
| 1198 | sb.append('#').append(fragment_); |
| 1199 | } |
| 1200 | return sb.toString(); |
| 1201 | } |
| 1202 | } |
| 1203 | |
| 1204 | static boolean isNormalUrlProtocol(final String protocol) { |
no test coverage detected