The java.net.SocketOption is a socket option that is connected with a socket, as the set of channels packages is java.nio.channels.NetworkChannel that this interface has defined… Read More
Tag Archives: Java-net-package
java.net.FileNameMap is a Java Interface. FileNameMap interface is a part of the java.net package. FileNameMap provides a mechanism to map between a file name and… Read More
CookiePolicy implementations decide which cookies should be accepted and which should be rejected. Three pre-defined policy implementations are provided, namely ACCEPT_ALL, ACCEPT_NONE, and ACCEPT_ORIGINAL_SERVER. Signature… Read More
ProtocolFamily is a java Interface. The java.net.ProtocolFamily represents a family of communication protocols. Java.net.StandardProtocolFamily implements ProtocolFamily Interface. public interface ProtocolFamily Methods of java.net.ProtocolFamily java.net.ProtocolFamily interface… Read More
A CookieStore is an interface in Java that is a storage area for cookies. It is used to store and retrieve cookies. A CookieStore is… Read More
SocketException is a subclass of IOException so it’s a checked exception. It is the most general exception that signals a problem when trying to open… Read More
HTTP Client and WebSocket APIs provide high-level client interfaces to HTTP (versions 1.1 and 2) and low-level client interfaces to WebSocket. The main types defined… Read More
ProxySelector determines which resource has to be requested via proxy as a result return List<Proxy> Methods of ProxySelector class : Method Description connectFailed() This method… Read More
URLConnection Class in Java is an abstract class that represents a connection of a resource as specified by the corresponding URL. It is imported by… Read More
ServerSocket Class is used for providing system-independent implementation of the server-side of a client/server Socket Connection. The constructor for ServerSocket throws an exception if it… Read More
A proxy is an immutable object and type of tool or application or program or system, which helps to protect the information of its users… Read More
NetPermission class is used to allow network permissions. NetPermission class extends BasicPermission class. It is a “named” permission i.e it contains a name but no… Read More
URLPermission class is used to represent the permission to access the resources of the given URL. The given URL acts as the name of the… Read More
public class InetAddress extends Object implements Serializable: The java.net.InetAddress class provides methods to get the IP address of any hostname. An IP address is represented… Read More
The java.net.Socket class allows us to create socket objects that help us in implementing all fundamental socket operations. We can perform various networking operations such… Read More