Chapter 10. Network Programming in Java
When you think about the web, you probably think of web-based applications and services. If you are asked to go deeper, you may consider tools such as web browsers and web servers that support those applications and move data around the network. In this chapter, we’ll look at how Java interacts with web services. We’ll also peek under the hood a bit and discuss some of the lower-level networking classes of the java.net package.
Uniform Resource Locators
A Uniform Resource Locator (URL) points to an object on the internet. It’s a text string that identifies an item, tells you where to find it, and specifies a method for communicating with it or retrieving it from its source. A URL can point to any kind of information source: static data, such as a file on a local filesystem, web server, or FTP site, or a more dynamic object, such as an RSS news feed or a database record. URLs can also refer to other resources, such as email addresses.
Because there are ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access