Package net.openid.appauth.connectivity
Class DefaultConnectionBuilder
- java.lang.Object
-
- net.openid.appauth.connectivity.DefaultConnectionBuilder
-
- All Implemented Interfaces:
ConnectionBuilder
public final class DefaultConnectionBuilder extends Object implements ConnectionBuilder
CreatesHttpURLConnection
instances using the default, platform-provided mechanism, with sensible production defaults.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultConnectionBuilder
INSTANCE
The singleton instance of the default connection builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpURLConnection
openConnection(Uri uri)
Creates a connection to the specified URL.
-
-
-
Field Detail
-
INSTANCE
public static final DefaultConnectionBuilder INSTANCE
The singleton instance of the default connection builder.
-
-
Method Detail
-
openConnection
@NonNull public HttpURLConnection openConnection(@NonNull Uri uri) throws IOException
Description copied from interface:ConnectionBuilder
Creates a connection to the specified URL.- Specified by:
openConnection
in interfaceConnectionBuilder
- Throws:
IOException
- if an error occurs while attempting to establish the connection.
-
-