MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / toString

Method toString

src/main/java/org/htmlunit/util/UrlUtils.java:1178–1201  ·  view source on GitHub ↗

Returns a string representation of the Url object. @return a string representation of the Url object.

()

Source from the content-addressed store, hash-verified

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) {

Callers 15

resolveUrlMethod · 0.95
getAttributeMethod · 0.45
encodePercentSignMethod · 0.45
createNewUrlMethod · 0.45
parseUrlMethod · 0.45
normalizeMethod · 0.45
toURIMethod · 0.45
attachVisualDebuggerMethod · 0.45
uncompressJavaScriptMethod · 0.45
saveResponseMethod · 0.45
nameValueListToJsMapMethod · 0.45
replaceCharsMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected