I have to make a java program in which there are some processes that communicate using HTTP
sockets. But I found that there are only TCP/UDP sockets in Java.
I am little bit confused here. Is there anything like HTTP Sockets ?
Is there any library in java that provides HTTP sockets ?
The processes in my program run on the same system spawned by a single main java program.
I need some way to communicate one process with the other.
HttpClientclass in thejava.net.httppackage, and anHttpServerclass in thecom.sun.net.httpserverpackage. HTTP may or may not be the most optimal choice for local IPC, depending on what you are trying to accomplish. What is wrong with using plain TCP with a custom protocol?