Klasse ConnectionHandler

java.lang.Object
de.sfuhrm.radiorecorder.ConnectionHandler

public class ConnectionHandler extends Object
Handles a single HttpConnection to an internet radio.
Autor:
Stephan Fuhrmann
  • Konstruktordetails

    • ConnectionHandler

      public ConnectionHandler(@NonNull @NonNull ConsumerContext consumerContext)
      Constructor for ConnectionHandler.
      Parameter:
      consumerContext - non-null consumer context this handler belongs to.
  • Methodendetails

    • configureTimeout

      protected void configureTimeout(HttpConnectionBuilder builder)
      Configure the timeout for the connection.
      Parameter:
      builder - the connection to configure.
    • configureProxy

      protected void configureProxy(HttpConnectionBuilder builder)
      Configure the proxy for the connection.
      Parameter:
      builder - the connection to configure.
    • configureIcecast

      protected void configureIcecast(HttpConnectionBuilder builder)
      Set headers to motivate Icecast servers to send meta data.
      Parameter:
      builder - the connection to configure.
      Siehe auch:
    • configureClient

      protected void configureClient(HttpConnectionBuilder builder)
      Set headers for user client.
      Parameter:
      builder - the connection to configure.
    • configure

      protected void configure(@NonNull @NonNull HttpConnectionBuilder builder)
      Configures the builder with the configuration from the consumerContext.
      Parameter:
      builder - the builder to configure.
    • consume

      public void consume(@NonNull @NonNull URI uri)
      Consumes the given URL.
      Parameter:
      uri - the URL to process. Must be non-null.
      Löst aus:
      NullPointerException - if url is null.