Class HttpConnectionBuilderFactory

java.lang.Object
de.sfuhrm.radiorecorder.http.HttpConnectionBuilderFactory

public class HttpConnectionBuilderFactory extends Object
Configures an URLConnection.
Author:
Stephan Fuhrmann
  • Constructor Details

    • HttpConnectionBuilderFactory

      public HttpConnectionBuilderFactory(@NonNull @NonNull HttpConnectionBuilderFactory.HttpClientType httpClientType)
      Constructor.
      Parameters:
      httpClientType - the type of client to produce.
  • Method Details

    • newInstance

      public HttpConnectionBuilder newInstance(URI url)
      Creates a new client of the type configured in the type.
      Parameters:
      url - the URL to create a new builder for.
      Returns:
      a new builder instance for the given URL.
      See Also:
      • httpClientType