O'Reilly logo

Learning Network Programming with Java by Richard M Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Client/server development using standard Java classes

Specifically, we will use the HttpURLConnection and HTTPServer classes to implement a client and server application. These classes support much of the functionality required for clients and servers. Using these classes will avoid writing low-level code to implement HTTP functionality. Low-level code refers to the non-specialized classes, such as the Socket class. Higher-level and more specialized classes, such as the HttpURLConnection and HTTPServer classes, supplement and provide additional support for specialized operations.

The HttpURLConnection class is derived from the HttpConnection class. This base class has a number of methods that not are directly concerned with the HTTP protocol.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required