Digital Marketing

Java Http Client

Although the java.net package provides basic functionality for accessing resources via HTTP, it doesn't provide the full flexibility or functionality needed by many applications. HttpClient seeks to fill this void by providing an efficient, up-to-date, and feature-rich package implementing the client side of the most recent HTTP standards and recommendations.

Designed for extension while providing robust support for the base HTTP protocol, HttpClient may be of interest to anyone building HTTP-aware client applications such as web browsers, web service clients, or systems that leverage or extend the HTTP protocol for distributed communication.

(Apache Commons HttpClient is an old project which  is now deprecated that produced HttpClient 3.1. The project was subsumed by the larger Apache HttpComponents project, which produced HttpClient 4.x.)

Restful implementation Jersey provides ApacheHttpClient Class which is a Client that utilizes the Apache HTTP client to send and receive HTTP request and responses.

Another choice is Google HTTP Client Library for JavaWritten by Google, the Google HTTP Client Library for Java is a flexible, efficient, and powerful Java library for accessing any resource on the web via HTTP. The library has the following features:
  • Pluggable HTTP transport abstraction that allows you to use any low-level library such as java.net.HttpURLConnection, Apache HTTP Client, or URL Fetch on Google App Engine.
  • Efficient JSON and XML data models for parsing and serialization of HTTP response and request content. The JSON and XML libraries are also fully pluggable, and they include support for Jackson and Android's GSON libraries for JSON.
The library supports the following Java environments:
  • Java 7 (or higher)
  • Android 4.0 (Ice Cream Sandwich) (or higher)
  • GoogleAppEngine Google App Engine
The following related projects are built on the Google HTTP Client Library for Java:

    Comments

    Popular posts from this blog

    Make online money from the Internet