Package org.htmlunit
Class UnexpectedPage
java.lang.Object
org.htmlunit.AbstractPage
org.htmlunit.UnexpectedPage
- All Implemented Interfaces:
Serializable
,Page
A generic page that is returned whenever an unexpected content type is returned by the server.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnexpectedPage
(WebResponse webResponse, WebWindow enclosingWindow) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
UnexpectedPage
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 Details
-
getInputStream
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:
IOException
- in case of IO problems
-