1 38 package com.gargoylesoftware.htmlunit; 39 40 48 public class JavaScriptPage implements Page { 49 private final WebResponse webResponse_; 50 private final String content_; 51 52 private WebWindow enclosingWindow_; 53 54 60 public JavaScriptPage( final WebResponse webResponse, final WebWindow enclosingWindow ) { 61 webResponse_ = webResponse; 62 content_ = webResponse.getContentAsString(); 63 enclosingWindow_ = enclosingWindow; 64 } 65 66 67 70 public void initialize() { 71 } 72 73 74 77 public void cleanUp() { 78 } 79 80 81 86 public String getContent() { 87 return content_; 88 } 89 90 91 96 public WebResponse getWebResponse() { 97 return webResponse_; 98 } 99 100 101 106 public WebWindow getEnclosingWindow() { 107 return enclosingWindow_; 108 } 109 } 110 111 | Popular Tags |