Klasse AbstractConsumer

java.lang.Object
de.sfuhrm.radiorecorder.consumer.AbstractConsumer
Alle implementierten Schnittstellen:
Consumer<HttpConnection>
Bekannte direkte Unterklassen:
M3UConsumer, MetaDataConsumer, PLSConsumer, XSPFConsumer

public abstract class AbstractConsumer extends Object implements Consumer<HttpConnection>
Base-class for many consumers. Subclasses need to implement _accept(de.sfuhrm.radiorecorder.http.HttpConnection).
Autor:
Stephan Fuhrmann
  • Konstruktordetails

    • AbstractConsumer

      public AbstractConsumer(@NonNull @NonNull ConsumerContext context)
      Constructor for AbstractConsumer.
      Parameter:
      context - the context to provide to the subclasses via the accessor. Must be non-null.
      Löst aus:
      NullPointerException - if context is null.
  • Methodendetails

    • accept

      public final void accept(HttpConnection u)
      Angegeben von:
      accept in Schnittstelle Consumer<HttpConnection>
    • _accept

      protected abstract void _accept(HttpConnection u)
      The inner accept implementation. Will get called after applying configuration to the HttpConnection passed in.
      Parameter:
      u - the connection to process.