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

Method getUrl

src/main/java/org/htmlunit/javascript/host/Location.java:589–591  ·  view source on GitHub ↗

Returns this location's current URL. @return this location's current URL

()

Source from the content-addressed store, hash-verified

587 * @return this location's current URL
588 */
589 private URL getUrl() {
590 return window_.getWebWindow().getEnclosedPage().getUrl();
591 }
592
593 /**
594 * Sets this location's URL, triggering a server hit and loading the resultant document

Callers 14

getSearchMethod · 0.95
setSearchMethod · 0.95
getHostnameMethod · 0.95
setHostnameMethod · 0.95
getHostMethod · 0.95
setHostMethod · 0.95
getPathnameMethod · 0.95
setPathnameMethod · 0.95
getPortMethod · 0.95
setPortMethod · 0.95
getProtocolMethod · 0.95
setProtocolMethod · 0.95

Calls 3

getUrlMethod · 0.65
getEnclosedPageMethod · 0.65
getWebWindowMethod · 0.45

Tested by

no test coverage detected