Package org.htmlunit.protocol
Class AnyHandler
java.lang.Object
java.net.URLStreamHandler
org.htmlunit.protocol.AnyHandler
Stream handler for URLs with unknown protocol which should simply not be opened.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected URLConnection
openConnection
(URL url) Returns a new URLConnection for this URL.Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Field Details
-
INSTANCE
Shared instance.
-
-
Constructor Details
-
AnyHandler
public AnyHandler()
-
-
Method Details
-
openConnection
Returns a new URLConnection for this URL.- Specified by:
openConnection
in classURLStreamHandler
- Parameters:
url
- the JavaScript URL- Returns:
- the connection
-