Package de.sfuhrm.radiorecorder
Klasse ConnectionHandler
java.lang.Object
de.sfuhrm.radiorecorder.ConnectionHandler
Handles a single
HttpConnection to an internet radio.- Autor:
- Stephan Fuhrmann
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConnectionHandler(@NonNull ConsumerContext consumerContext) Constructor forConnectionHandler. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidconfigure(@NonNull HttpConnectionBuilder builder) Configures the builder with the configuration from theconsumerContext.protected voidconfigureClient(HttpConnectionBuilder builder) Set headers for user client.protected voidconfigureIcecast(HttpConnectionBuilder builder) Set headers to motivate Icecast servers to send meta data.protected voidconfigureProxy(HttpConnectionBuilder builder) Configure the proxy for the connection.protected voidconfigureTimeout(HttpConnectionBuilder builder) Configure the timeout for the connection.voidConsumes the given URL.
-
Konstruktordetails
-
ConnectionHandler
Constructor forConnectionHandler.- Parameter:
consumerContext- non-null consumer context this handler belongs to.
-
-
Methodendetails
-
configureTimeout
Configure the timeout for the connection.- Parameter:
builder- the connection to configure.
-
configureProxy
Configure the proxy for the connection.- Parameter:
builder- the connection to configure.
-
configureIcecast
Set headers to motivate Icecast servers to send meta data.- Parameter:
builder- the connection to configure.- Siehe auch:
-
configureClient
Set headers for user client.- Parameter:
builder- the connection to configure.
-
configure
Configures the builder with the configuration from theconsumerContext.- Parameter:
builder- the builder to configure.
-
consume
Consumes the given URL.- Parameter:
uri- the URL to process. Must be non-null.- Löst aus:
NullPointerException- if url is null.
-