Package java.net

Interface URLStreamHandlerFactory

All Known Implementing Classes:
OkHttpClient

public interface URLStreamHandlerFactory
Defines a factory which creates an URLStreamHandler for a specified protocol. It is used by the class URL.
  • Method Summary

    Modifier and Type Method Description
    URLStreamHandler createURLStreamHandler​(String protocol)
    Creates a new URLStreamHandler instance for the given protocol.
  • Method Details

    • createURLStreamHandler

      URLStreamHandler createURLStreamHandler​(String protocol)
      Creates a new URLStreamHandler instance for the given protocol.
      Parameters:
      protocol - the protocol for which a handler is needed.
      Returns:
      the created handler.