org.apache.hadoop.fs
Class FsUrlStreamHandlerFactory

java.lang.Object
  extended by 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.


Constructor Summary
FsUrlStreamHandlerFactory()
           
FsUrlStreamHandlerFactory(Configuration conf)
           
 
Method Summary
 java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FsUrlStreamHandlerFactory

public FsUrlStreamHandlerFactory()

FsUrlStreamHandlerFactory

public FsUrlStreamHandlerFactory(Configuration conf)
Method Detail

createURLStreamHandler

public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
Specified by:
createURLStreamHandler in interface java.net.URLStreamHandlerFactory


Copyright © 2009 The Apache Software Foundation