Package de.sfuhrm.radiorecorder
Class ConnectionHandler
java.lang.Object
de.sfuhrm.radiorecorder.ConnectionHandler
Handles a single
HttpConnection to an internet radio.- Author:
- Stephan Fuhrmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigure(HttpConnectionBuilder builder) 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.
-
Constructor Details
-
ConnectionHandler
-
-
Method Details
-
configureTimeout
Configure the timeout for the connection.- Parameters:
builder- the connection to configure.
-
configureProxy
Configure the proxy for the connection.- Parameters:
builder- the connection to configure.
-
configureIcecast
Set headers to motivate Icecast servers to send meta data.- Parameters:
builder- the connection to configure.- See Also:
-
configureClient
Set headers for user client.- Parameters:
builder- the connection to configure.
-
configure
- Throws:
IOException
-
consume
Consumes the given URL.- Parameters:
url- the URL to process. Must be non-null.
-