/src/main/java/org/htmlunit/html/HtmlEmbed.java
final WebRequest request = new WebRequest( url, page.getCharset( ) , page.getUrl( ) ) ; final URL url = page.getFullyQualifiedUrl( getAttributeDirect( SRC_ATTRIBUTE) ) ;
final URL url = page.getFullyQualifiedUrl ( getAttributeDirect ( SRC_ATTRIBUTE ) ) ; final WebRequest request = new WebRequest ( url, page.getCharset ( ) , page.getUrl ( ) ) ;
final Map<String, DomAttr> attributes) { super(qualifiedName, page, attributes); } public void saveAs(final File file) throws IOException { final HtmlPage page = (HtmlPage) getPage(); final WebClient webclient = page.getWebClient(); <extra_id_0> final WebResponse webResponse = webclient.loadWebResponse(request); try (OutputStream fos = Files.newOutputStream(file.toPath()); InputStream content = webResponse.getContentAsStream()) { IOUtils.copy(content, fos); } }