Skip to main content

http.jar in JAX-WS 2.0 ./lib folder

2 replies [Last post]
hr_stoyanov
Offline
Joined: 2004-04-01
Points: 0

I noticed some http.jar file in the JAX-WS ./lib folder. It seems this is a feature from Mustang and looking at the class names in the package, this might be a good replacement for Apache's HTTP stuff:

http://jakarta.apache.org/commons/httpclient/

if you think the package provides good client side HTTP protocol API (soemthing JAX-WS must use anyway), I'd be interested to read some docs. I really want to dump the Apache/Commons HTTP stuff, due to their use of non-standard logging, regex, etc. The sooner, the better.

Thanks,
Hristo

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jitu
Offline
Joined: 2003-06-14
Points: 0

It does not have any API for writing HTTP clients. It has some API to create and run a light weight http server. BTW, what more functionality is required in the client side that is not provided by HttpURLConnection ?

hr_stoyanov
Offline
Joined: 2004-04-01
Points: 0

jiyu-,
I know some cookie management stuff had been added lately, I had problems with persitent connections and other stuff and chose to use the Apache implementation.

My impresion is that (Http)URLConnection is not considered seriously, doesn not implement the full HTTP protocol, etc. Most people believe it is an ancient API from the early days of Java, not very well designed. See also the below article:

http://www.javaworld.com/javaworld/jw-03-2001/jw-0323-traps_p.html