Package org.htmlunit

Class 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 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 page
        enclosingWindow - 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