A BindException is thrown when a process cannot bind a local
address/port, either because it is already bound or reserved by the OS.
Most… API Doc
Legacy security code; do not use.
A response cache entry. A CacheResponse object provides an InputStream to access the response body and a Map for the response headers. API Doc
This class converts the content of a certain format (i.e. a MIME type) into a
Java type object. It is created by ContentHandlerFactory. The data
… API Doc
If a HTTP request has to be retried, this exception will be thrown if the
request cannot be retried automatically.
This class establishes a connection to a jar: URL using the JAR protocol. A JarURLConnection instance can refer to either a JAR
archive file or to… API Doc
Signals that an ICMP Port Unreachable message has been
received on a connected datagram. API Doc
Selects the proxy server to use, if any, when connecting to the
network resource referenced by a URL. A proxy selector is a
concrete sub-class of… API Doc
The abstract class SocketImpl is a common superclass
of all classes that actually implement sockets. It is used to
create both client and server… API Doc
This class represents access to a network via sockets.
A SocketPermission consists of a
host specification and a set of "actions" specifying ways… API Doc
Utility class for HTML form decoding. This class contains static methods
for decoding a String from the application/x-www-form-urlencoded
MIME… API Doc
This class provides a way to manage cookies with a HTTP protocol handler.
CookiePolicy has three pre-defined policy. They are ACCEPT_ALL, ACCEPT_NONE
and ACCEPT_ORIGINAL_SERVER respectively. They are used to decide which
… API Doc
An IPv4 address. See InetAddress.
An IPv6 address. See InetAddress.
The NoRouteToHostException will be thrown while attempting to connect
to a remote host but the host cannot be reached for instance because of a
… API Doc
This class represents a proxy setting, typically a type (http, socks) and
a socket address.
A Proxy is an immutable object. API Doc
Thrown to indicate that there is an error creating or accessing a Socket. API Doc
This class loader is used to load classes and resources from a search
path of URLs referring to both JAR files and directories. Any URL that
ends… API Doc
This interface defines a factory for URL stream
It is used by the URL class to create a
URLStreamHandler for a specific… API Doc
Enumeration class for the origin of the authentication request.
CacheRequest is a kind of channel for storing resource data in the
ResponseCache. A protocol handler calls the OutputStream
which is provided by… API Doc
The abstract superclass for datagram and multicast socket implementations.
Thrown to indicate that an unknown service exception has
occurred. Either the MIME type returned by a URL connection does
not make sense, or the… API Doc
Represents implementations of URLConnection caches. An instance of
such a class can be registered with the system by doing
… API Doc
An implementation of this class is able to obtain authentication information
for a connection in several ways. For this purpose it has to set the… API Doc
A ConnectException is thrown if a connection cannot be established to
a remote host on a specific port.
Most applications should not catch this… API Doc
This class provides a concrete implementation of CookieHandler. It separates
the storage of cookies from the policy which decides to accept or… API Doc
A CookieStore object is a repository for cookies.
CookieManager will store cookies of every incoming HTTP response into
CookieStore, and retrieve… API Doc
This class represents a datagram packet which contains data either to be sent
or received through a DatagramSocket. It holds additional… API Doc
This class implements a UDP socket for sending and receiving DatagramPacket. A DatagramSocket object can be used for both
endpoints of a connection… API Doc
Defines a scheme for mapping a filename type to a MIME content type. Mainly
used by URLStreamHandler for determining the right content handler to
… API Doc
An opaque key-value value pair held by an HTTP client to permit a stateful
session with an HTTP server. This class parses cookie headers for all… API Doc
An URLConnection for HTTP (RFC 2616) used to send and
receive data over the web. Data may be of any type and length. This class may
be used to… API Doc
An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and
in practice you'll have an instance of either… API Doc
This class represents a socket endpoint described by a IP address and a port
number. It is a concrete implementation of SocketAddress for IP.
Identifies one of a network interface's addresses.
These are passed back from the JNI behind NetworkInterface.getNetworkInterfaces.
Multiple… API Doc
This exception is thrown when a program attempts to create an URL from an
incorrect specification. API Doc
This class implements a multicast socket for sending and receiving IP
multicast datagram packets. API Doc
This class is used to represent a network interface of the local device. An
interface is defined by its address and a platform dependent name. The… API Doc
This immutable class is a data structure that encapsulates username and
password which is used by the Authenticator class. API Doc
Thrown to indicate that there is an error in the underlying
protocol, such as a TCP error. API Doc
This class implements server sockets. A server socket waits for
requests to come in over the network. It performs some operation
based on that… API Doc
This class implements client sockets (also called just
"sockets"). A socket is an endpoint for communication
between two machines.
The actual… API Doc
This class represents a Socket Address with no protocol attachment.
As an abstract class, it is meant to be subclassed with a specific,
protocol… API Doc
Signals that a timeout has occurred on a socket read or accept. API Doc
Represents a Uniform Resource Identifier (URI) reference.
Aside from some minor deviations noted below, an instance of this
class represents a… API Doc
Checked exception thrown to indicate that a string could not be parsed as a
URI reference. API Doc
Class URL represents a Uniform Resource
Locator, a pointer to a "resource" on the World
Wide Web. A resource can be something as simple as a file… API Doc
The abstract class URLConnection is the superclass
of all classes that represent a communications link between the
application and a URL.… API Doc
Thrown to indicate that the IP address of a host could not be determined. API Doc