1 38 package com.gargoylesoftware.htmlunit; 39 40 import java.io.IOException ; 41 import java.io.InputStream ; 42 43 51 public class UnexpectedPage implements Page { 52 private final WebResponse webResponse_; 53 54 private WebWindow enclosingWindow_; 55 56 63 public UnexpectedPage( final WebResponse webResponse, final WebWindow enclosingWindow ) { 64 webResponse_ = webResponse; 65 enclosingWindow_ = enclosingWindow; 66 } 67 68 69 72 public void initialize() { 73 } 74 75 76 79 public void cleanUp() { 80 } 81 82 83 90 public InputStream getInputStream() 91 throws IOException { 92 return webResponse_.getContentAsStream(); 93 } 94 95 96 101 public WebResponse getWebResponse() { 102 return webResponse_; 103 } 104 105 106 111 public WebWindow getEnclosingWindow() { 112 return enclosingWindow_; 113 } 114 } 115 116 | Popular Tags |