Package de.sfuhrm.radiorecorder.http
Class HttpConnectionBuilderFactory
java.lang.Object
de.sfuhrm.radiorecorder.http.HttpConnectionBuilderFactory
Configures an URLConnection.
- Author:
- Stephan Fuhrmann
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMultiple types of http clients this program offers. -
Constructor Summary
ConstructorsConstructorDescriptionHttpConnectionBuilderFactory(@NonNull HttpConnectionBuilderFactory.HttpClientType httpClientType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(URI url) Creates a new client of the type configured in the type.
-
Constructor Details
-
HttpConnectionBuilderFactory
public HttpConnectionBuilderFactory(@NonNull @NonNull HttpConnectionBuilderFactory.HttpClientType httpClientType) Constructor.- Parameters:
httpClientType- the type of client to produce.
-
-
Method Details
-
newInstance
Creates a new client of the type configured in the type.- Parameters:
url- the URL to create a new builder for.- Returns:
- a new builder instance for the given URL.
- See Also:
-