Class JavaScriptURLConnection

java.lang.Object
java.net.URLConnection
org.htmlunit.protocol.javascript.JavaScriptURLConnection

public class JavaScriptURLConnection extends URLConnection
A URLConnection for supporting JavaScript URLs.
Author:
Mike Bowler
  • Field Details

  • Constructor Details

    • JavaScriptURLConnection

      public JavaScriptURLConnection(URL newUrl)
      Creates an instance.
      Parameters:
      newUrl - the JavaScript URL
  • Method Details

    • connect

      public void connect()
      This method does nothing in this implementation but is required to be implemented.
      Specified by:
      connect in class URLConnection
    • getInputStream

      public InputStream getInputStream()
      Returns the input stream - in this case the content of the URL.
      Overrides:
      getInputStream in class URLConnection
      Returns:
      the input stream