Synopses & Reviews
The network is the soul of Java. Most of what is new and exciting about Java centers around the potential for new kinds of dynamic networked applications. Java Network Programming describes the java.net package, which contains classes for communications and working with networked resources. It is a complete introduction to developing network programs (both applets and applications) using Java, covering everything from networking fundamentals to remote method invocation (RMI).Whether you're an experienced network programmer, or just want to see what's possible, you'll find Java Network Programming is a thorough guide to Java's networking potential. It covers Java 1.1, contains many complete programs (available online), and covers all aspects of basic network programming. You'll find chapters on TCP and UDP sockets, multicasting protocol and content handlers, and servlets, part of the new Server API. It also covers what you can do without explicitly writing newtork code: how you can accomplish your goals using URLs and the basic capabilities of applets.
Synopsis
The network is the soul of Java. Most of what is new and exciting about Java centers around the potential for new kinds of dynamic networked applications. Java Network Programming describes the java.net
Synopsis
The network is the soul of Java. "Java Network Programming" describes the java.net package, which contains classes for communications and working with network resources. This book is a complete guide to writing sophisticated network applications, including many kinds of clients and servers.
About the Author
Elliotte Rusty Harold is originally from New Orleans to which he returns periodically in search of a decent bowl of gumbo. However, he currently resides in the Prospect Heights neighborhood of Brooklyn with his wife Beth and dog Thor. He's a frequent speaker at industry conferences including Software Development, Dr. Dobb's Architecture & Design World, SD Best Practices, Extreme Markup Languages, and too many user groups to count. His open source projects include the XOM Library for processing XML with Java and the Amateur media player.
Table of Contents
Table of Contents
Preface
Chapter 1.Why Networked Java?
What Can a Network Program Do?
But Wait. There's More!
Chapter 2.Basic Network Concepts
Network
IP, TCP, and UDP
The Internet
The Client-Server Model
Internet Standards: RFCs
Chapter 3.Basic Web Concepts
URLs, URIs, and URNs
HTML and SGML
HTTP
MIME
CGI
Applets and Security
Chapter 4.Processing Internet Addresses
DNS, IP Addresses, and All That
The InetAddress Class
Converting IP Addresses to Names
Some Useful Programs
Chapter 5.Retrieving Data with URLs
The URL Class
The URLEncoder Class
Some Useful Programs
Chapter 6.The Network Methods of java.applet.Applet
Using the Applet Class\& to Download Data
The ImageObserver Interface
The MediaTracker Class
The Network Methods of the AppletContext Interface
Some Useful Programs
Chapter 7.Sockets for Clients
What Is a Socket?
The Socket Class
Socket Exceptions
Some Useful Programs
Chapter 8.Sockets for Servers
What Is a Server Socket?
The ServerSocket Class
Some Useful Servers
Chapter 9.UDP Datagrams and Sockets
What Is a UDP Datagram?
The DatagramPacket Class
The DatagramSocket Class
A Higher Level of Abstraction
Some Useful Applications
Chapter 10.The URLConnection Class
The URLConnection Class
Some Useful Programs
Chapter 11.Protocol Handlers
What Is a Protocol Handler?
Writing a URLStreamHandler
Writing a Protocol Handler
Factories for URLStreamHandlers
More Protocol Handler Examples & and Techniques
Chapter 12.Content Handlers
What Is a Content Handler?
The ContentHandler Class
Factories for ContentHandlers
Some More Content Handlers
Chapter 13.Multicast Sockets
What Is a Multicast Socket?
Working with Multicast Sockets
Two Simple Examples
Chapter 14.Remote Method Invocation
What Is Remote Method Invocation?
Implementation
The java.rmi Package
The java.rmi.registry Package
The java.rmi.server Package
Chapter 15.The Java Server API and Servlets
What Is the Java Server API?
Writing Servlets
The java.servlet Package
The java.servlet.http Package
Index