Interface URLStreamHandlerPluginExtension

All Superinterfaces:
PluginExtension, URLStreamHandlerPluginExtensionConstants
All Known Subinterfaces:
URLStreamHandlerWithLockPluginExtension

@API(type=EXTENDABLE, src=PUBLIC) public interface URLStreamHandlerPluginExtension extends PluginExtension, URLStreamHandlerPluginExtensionConstants
This URL stream handler provides the possibility to impose the URL stream handlers for specific protocols.

This plugin extension can provide URL stream handlers for multiple protocols, other than then ones handled by the application (like file, http, ftp, sftp or https).

If it is necessary to impose the application stream URL handlers for specific URLs with protocols like:http, https, ftp or sftp, the TargetedURLStreamHandlerPluginExtension can be used.
  • Method Details

    • getURLStreamHandler

      URLStreamHandler getURLStreamHandler(String protocol)
      Get the URL handler for the specified protocol.
      Parameters:
      protocol - The name of the protocol.
      Returns:
      The handler for the protocol or null if it does not know it.