Package org.htmlunit
Class UnexpectedPage
- java.lang.Object
-
- org.htmlunit.AbstractPage
-
- org.htmlunit.UnexpectedPage
-
- All Implemented Interfaces:
java.io.Serializable
,Page
public class UnexpectedPage extends AbstractPage
A generic page that is returned whenever an unexpected content type is returned by the server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnexpectedPage(WebResponse webResponse, WebWindow enclosingWindow)
Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
Returns an input stream representing all the content that was returned from the server.-
Methods inherited from class org.htmlunit.AbstractPage
cleanUp, getEnclosingWindow, getUrl, getWebResponse, initialize, isHtmlPage
-
-
-
-
Constructor Detail
-
UnexpectedPage
public UnexpectedPage(WebResponse webResponse, WebWindow enclosingWindow)
Creates an instance.- Parameters:
webResponse
- the response from the server that contains the data required to create this pageenclosingWindow
- the window that this page is being loaded into
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
Returns an input stream representing all the content that was returned from the server.- Returns:
- an input stream representing all the content that was returned from the server
- Throws:
java.io.IOException
- in case of IO problems
-
-