Class AbstractConsumer

java.lang.Object
de.sfuhrm.radiorecorder.consumer.AbstractConsumer
All Implemented Interfaces:
Consumer<HttpConnection>
Direct Known Subclasses:
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).
Author:
Stephan Fuhrmann
  • Constructor Details

  • Method Details

    • accept

      public final void accept(HttpConnection u)
      Specified by:
      accept in interface Consumer<HttpConnection>
    • _accept

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