Restful java client with java.net.URL

Restful services with Jersey and java.net.URL Java has introduced the class called “URL” (Uniform Resource Locator) under java.net package which basically points to any resource on the web. This class can be used as a Rest client to perform some of the basic operations on Rest service. Create a new Maven Web project in eclipse […]

Share this article on

Restful Java client with Apache HTTP client

Restful services with Jersey and Apache HTTP client Create a new Maven Web project in eclipse (Refer Rest service Hello World project for the same) Project structure Step 1 Update pom.xml with below dependencies <project xmlns="http://maven.apache.org/POM/4.0.0         "xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0         http://maven.apache.org/maven-v4_0_0.xsd">     <modelVersion>4.0.0</modelVersion>   […]

Share this article on
< Previous Next >