Man has to have his own HTTP abstraction in Java

I hate the fact that every project is building their own HTTP abstraction on top of some library, sometimes java.net, sometimes commons-httpclient but always a custom implementation that depends on something different.

Currently I am trying to implement a Constaint on Alfresco that can get the allowed values from a controlled vocabulary service via HTTP. First I tried to use Alfresco’s own abstraction to deal with HTTP calls in order to facilitate the existing code-base. But it is not wise for two reasons;

  • First the implementation is not good at all
  • Second they have changed it with every major release, with 3.3 it is not even in Alfresco, it is in Spring Surf Webscript artifact. –I assume we are not supposed to use it, since it is an internal API–

That is why I am asking; “Does every developer need his/her own HTTP lib?”

I think it is logical to have one, a simple one at least, so that you don’t have to deal with these kind of problems.

It is not that difficult to build one for yourself, get inspired from an existing library. For example the one included in spring-web is very good.

Read More Post

STAY CONNECTED

Most Popular

Manifesting Your Dream Career: Finding Your Passion And Purpose
01 Aug

Manifesting Your Dream Career: Finding Your Passion And Purpose

Are you passionate about finding your dream career? Manifesting can help you align your career with your passions and purpose.

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service
27 Feb

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service

Finding a reliable auto service provider is paramount in the bustling world of vehicle maintenance and repair. That's where Carolina

Floratam: The Robust Grass Solution From Council Growers SOD
25 Jan

Floratam: The Robust Grass Solution From Council Growers SOD

Floratam grass, a popular St. Augustine variety, has become a go-to choice for homeowners and landscapers seeking a lush, durable

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair
25 Jan

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair

For vehicle owners, the braking system is among the most critical components for safety and performance. Carolina Mobile Autoservice, a

Safeguarding Your Property: Expert Water Damage Services By MBC Capital
24 Jan

Safeguarding Your Property: Expert Water Damage Services By MBC Capital

Water damage can significantly impact homes and businesses, often leaving a trail of destruction and disruption in its wake. Understanding

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics
19 Jan

Revanesse Lip Filler: The Secret To A Perfect Pout – Discover America’s New Favorite At Beauty From Ashes Aesthetics

In the ever-evolving world of cosmetic enhancements, there's a constant quest for the next big thing. The latest darling in