Package org.apache.hadoop.fs
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]These are the protocols with MUST NOT be exported, as doing so would conflict with the standard URL handlers registered by the JVM. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
-
-
Method Details
-
createURLStreamHandler
- Specified by:
createURLStreamHandlerin interfaceURLStreamHandlerFactory
-