Class FsUrlStreamHandlerFactory

java.lang.Object
org.apache.hadoop.fs.FsUrlStreamHandlerFactory
All Implemented Interfaces:
URLStreamHandlerFactory

@Private @Unstable public class FsUrlStreamHandlerFactory extends Object implements URLStreamHandlerFactory
Factory for URL stream handlers. There is only one handler whose job is to create UrlConnections. A FsUrlConnection relies on FileSystem to choose the appropriate FS implementation. Before returning our handler, we make sure that FileSystem knows an implementation for the requested scheme/protocol.
  • Field Details

    • UNEXPORTED_PROTOCOLS

      public static final String[] UNEXPORTED_PROTOCOLS
      These are the protocols with MUST NOT be exported, as doing so would conflict with the standard URL handlers registered by the JVM. Many things will break.
  • Constructor Details

    • FsUrlStreamHandlerFactory

      public FsUrlStreamHandlerFactory()
    • FsUrlStreamHandlerFactory

      public FsUrlStreamHandlerFactory(Configuration conf)
  • Method Details