Class AnyHandler


  • public class AnyHandler
    extends java.net.URLStreamHandler
    Stream handler for URLs with unknown protocol which should simply not be opened.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static AnyHandler INSTANCE
      Shared instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      AnyHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.net.URLConnection openConnection​(java.net.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INSTANCE

        public static final AnyHandler INSTANCE
        Shared instance.
    • Constructor Detail

      • AnyHandler

        public AnyHandler()
    • Method Detail

      • openConnection

        protected java.net.URLConnection openConnection​(java.net.URL url)
        Returns a new URLConnection for this URL.
        Specified by:
        openConnection in class java.net.URLStreamHandler
        Parameters:
        url - the JavaScript URL
        Returns:
        the connection