Package de.sfuhrm.radiobrowser4j
Klasse EndpointDiscovery
java.lang.Object
de.sfuhrm.radiobrowser4j.EndpointDiscovery
Discovers the radio browser API endpoint that suits the application.
- Autor:
- Stephan Fuhrmann
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungEndpointDiscovery(@NonNull String myUserAgent) Constructs a new instance.EndpointDiscovery(@NonNull String myUserAgent, String myProxyUri, String myProxyUser, String myProxyPassword) Constructs a new instance. -
Methodenübersicht
-
Konstruktordetails
-
EndpointDiscovery
Constructs a new instance.- Parameter:
myUserAgent- the user agent String to use while discovery.
-
EndpointDiscovery
public EndpointDiscovery(@NonNull @NonNull String myUserAgent, String myProxyUri, String myProxyUser, String myProxyPassword) Constructs a new instance.- Parameter:
myUserAgent- the user agent String to use while discovery.myProxyUri- the optional URI of a HTTP proxy to use.myProxyUser- the optional username to authenticate with to access the proxy.myProxyPassword- the optional password to authenticate with to access the proxy.
-
-
Methodendetails
-
discover
Discovers the best performing endpoint.- Gibt zurück:
- an optional endpoint address that can be passed to
the
RadioBrowserconstructors. - Löst aus:
IOException- when there is an IO problem while discovery.
-