Package ro.sync.net.protocol
Class OxygenURLStreamHandlerFactory
- java.lang.Object
-
- ro.sync.net.protocol.OxygenURLStreamHandlerFactory
-
- All Implemented Interfaces:
java.net.URLStreamHandlerFactory
@API(type=NOT_EXTENDABLE, src=PUBLIC) public class OxygenURLStreamHandlerFactory extends java.lang.Object implements java.net.URLStreamHandlerFactory
The URLStreamHandlerFactory that handles all the protocols supported by Oxygen. It handles both builtin protocols and plugin-contributed ones.
-
-
Constructor Summary
Constructors Constructor Description OxygenURLStreamHandlerFactory()
Constructor.OxygenURLStreamHandlerFactory(java.net.URLStreamHandlerFactory extraFactory)
An extra factory which can be used to resolve extra protocols.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLStreamHandler
createURLStreamHandler(java.lang.String protocol)
static java.util.Set<java.lang.String>
getBuiltinProtocols()
Returns the list of built-in protocol names.
-
-
-
Constructor Detail
-
OxygenURLStreamHandlerFactory
public OxygenURLStreamHandlerFactory()
Constructor.
-
OxygenURLStreamHandlerFactory
public OxygenURLStreamHandlerFactory(java.net.URLStreamHandlerFactory extraFactory)
An extra factory which can be used to resolve extra protocols.- Parameters:
extraFactory
- An extra factory which can be used to resolve extra protocols.
-
-
Method Detail
-
getBuiltinProtocols
public static java.util.Set<java.lang.String> getBuiltinProtocols()
Returns the list of built-in protocol names.- Returns:
- The list of built-in protocol names.
-
createURLStreamHandler
public java.net.URLStreamHandler createURLStreamHandler(java.lang.String protocol)
- Specified by:
createURLStreamHandler
in interfacejava.net.URLStreamHandlerFactory
- See Also:
URLStreamHandlerFactory.createURLStreamHandler(java.lang.String)
-
-