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

Method getUrl

src/main/java/org/htmlunit/SgmlPage.java:253–260  ·  view source on GitHub ↗

Returns the URL of this page. @return the URL of this page

()

Source from the content-addressed store, hash-verified

251 * @return the URL of this page
252 */
253 @Override
254 public URL getUrl() {
255 final WebResponse wr = getWebResponse();
256 if (null == wr) {
257 return UrlUtils.URL_ABOUT_BLANK;
258 }
259 return getWebResponse().getWebRequest().getUrl();
260 }
261
262 @Override
263 public boolean isHtmlPage() {

Callers 4

getCookieMethod · 0.95
setCookieMethod · 0.95
getScriptableObjectMethod · 0.95

Calls 3

getWebResponseMethod · 0.95
getUrlMethod · 0.65
getWebRequestMethod · 0.45

Tested by

no test coverage detected