Package de.sfuhrm.radiorecorder.consumer
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 Summary
Constructors Constructor Description AbstractConsumer(ConsumerContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void_accept(HttpConnection u)The inner accept implementation.voidaccept(HttpConnection u)
-
-
-
Constructor Detail
-
AbstractConsumer
public AbstractConsumer(ConsumerContext context)
-
-
Method Detail
-
accept
public final void accept(HttpConnection u)
- Specified by:
acceptin interfaceConsumer<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.
-
-