How to create a java client to call RESTful web service JAX-RS (Jersey )

Java client is nothing but a simple java class or servlet that calls either java or non-java RESTful web service . The client may request for Html , XML , JSON or plain text response from the RESTful web service.Few response types are given below.