org.apache.hadoop.fs
Class FsUrlStreamHandlerFactory
java.lang.Object
org.apache.hadoop.fs.FsUrlStreamHandlerFactory
- All Implemented Interfaces:
- java.net.URLStreamHandlerFactory
public class FsUrlStreamHandlerFactory
- extends java.lang.Object
- implements java.net.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FsUrlStreamHandlerFactory
public FsUrlStreamHandlerFactory()
FsUrlStreamHandlerFactory
public FsUrlStreamHandlerFactory(Configuration conf)
createURLStreamHandler
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
- Specified by:
createURLStreamHandler
in interface java.net.URLStreamHandlerFactory
Copyright © 2009 The Apache Software Foundation