android.net

Interfaces

OnNetworkActiveListener

Callback for use with ConnectivityManager#addDefaultNetworkActiveListener to find out when the system default network has gone in to a high power state.

Callback

Base interface for answer callbacks

TransportInfo

A container for transport-specific capabilities which is returned by NetworkCapabilities#getTransportInfo().

ValueSanitizer

A functor used to sanitize a single query value.

Classes

CaptivePortal

A class allowing apps handling the ConnectivityManager#ACTION_CAPTIVE_PORTAL_SIGN_IN activity to indicate to the system different outcomes of captive portal sign in.

ConnectivityDiagnosticsManager

Class that provides utilities for collecting network connectivity diagnostics information.

ConnectivityManager

Class that answers queries about the state of network connectivity.

Credentials

A class for representing UNIX credentials passed via ancillary data on UNIX domain sockets.

DhcpInfo

A simple object for retrieving the results of a DHCP request.

DnsResolver

Dns resolver class for asynchronous dns querying Note that if a client sends a query with more than 1 record in the question section but the remote dns server does not support this, it may not respond at all, leading to a timeout.

EthernetNetworkSpecifier

A NetworkSpecifier used to identify ethernet interfaces.

Ikev2VpnProfile

The Ikev2VpnProfile is a configuration for the platform setup of IKEv2/IPsec VPNs.

InetAddresses

Utility methods for InetAddress implementations.

IpConfiguration

A class representing the IP configuration of a network.

IpPrefix

This class represents an IP prefix, i.

IpSecAlgorithm

This class represents a single algorithm that can be used by an IpSecTransform.

IpSecManager

This class contains methods for managing IPsec sessions.

IpSecTransform

This class represents a transform, which roughly corresponds to an IPsec Security Association.

LinkAddress

Identifies an IP address on a network link.

LinkProperties

Describes the properties of a network link.

LocalServerSocket

Non-standard class for creating an inbound UNIX-domain socket in the Linux abstract namespace.

LocalSocket

Creates a (non-server) socket in the UNIX-domain namespace.

LocalSocketAddress

A UNIX-domain (AF_LOCAL) socket address.

MacAddress

Representation of a MAC address.

MailTo

MailTo URL parser This class parses a mailto scheme URL and then can be queried for the parsed parameters.

Network

Identifies a Network.

NetworkCapabilities

Representation of the capabilities of an active network.

NetworkInfo

Describes the status of a network interface.

NetworkRequest

An object describing a network that the application is interested in.

NetworkSpecifier

Describes specific properties of a requested network for use in a NetworkRequest.

PlatformVpnProfile

PlatformVpnProfile represents a configuration for a platform-based VPN implementation.

Proxy

A convenience class for accessing the user and default proxy settings.

ProxyInfo

Describes a proxy configuration.

RouteInfo

Represents a network route.

SocketKeepalive

Allows applications to request that the system periodically send specific packets on their behalf, using hardware offload to save battery power.

SSLCertificateSocketFactory

SSLSocketFactory implementation with several extra features:

  • Timeout specification for SSL handshake operations
  • Hostname verification in most cases (see WARNINGs below)
  • Optional SSL session caching with SSLSessionCache
  • Optionally bypass all SSL certificate checks
The handshake timeout does not apply to actual TCP socket connection.

SSLSessionCache

File-based cache of established SSL sessions.

StaticIpConfiguration

Class that describes static IP configuration.

TelephonyNetworkSpecifier

NetworkSpecifier object for cellular network request.

TrafficStats

Class that provides network traffic statistics.

Uri

Immutable URI reference.

UrlQuerySanitizer

Sanitizes the Query portion of a URL.

VpnManager

This class provides an interface for apps to manage platform VPN profiles

VpnProfileState

Describe the state of VPN.

VpnService

VpnService is a base class for applications to extend and build their own VPN solutions.

Exceptions

ParseException

Thrown when parsing failed.