Home » Author Archives: Vaibhav Kulkarni

Author Archives: Vaibhav Kulkarni

Vaibhav Kulkarni
Vaibahv is PH.D candidate and holds masters degree in computer application. He is active contributor to Apache Software Foundation as well as openJDK.

java.net.CookieManager Example

A Cookie is a small piece of data (such as browsing activity) sent from a website and stored in a user’s web browser while the user is browsing that website. In Java 5, an abstract class java.net.Cookiehandler was introduced which is responsible for storing and retrieving cookies. However, there was not an actual implementation of that class. In Java 6, ...

Read More »

java.net.URLDecoder Example

URLDecoder is a utility class for HTML form decoding. This class contains static methods for decoding a String from the application/x-www-form-urlencoded MIME format. Project Environment This example was implemented using the following tools : Eclipse 4.3 (Kepler) JDK 1.4 or greater 1. Example of URLDecoder We are going to decode string in this example. Create a java class named URLDecoderExample ...

Read More »

java.net.CookieStore Example

A CookieStore is an interface that represents a storage area for cookies.CookieManager adds the cookies to the CookieStore for every HTTP response and retrieves cookies from the CookieStore for every HTTP request. You can customize CookieStore to save cookies so that they can be used even if the Java Virtual Machine is restarted. In this example we are going to retrieve ...

Read More »

java.net.URLConnection Example

URLConnection class is used for accessing the attributes of a remote resource. It represents a communication link between the URL and the application.This class can be used to read and write data to resource provided by the URL. URLConnection has subclasses HttpURLConnection which has support for HTTP-specific features and JarURLConnection which has support for JAR-specific features. In this example we ...

Read More »