| |
| |
Preface | |
| |
| |
| |
Why Networked Java? | |
| |
| |
What Can a Network Program Do? | |
| |
| |
Security | |
| |
| |
But Wait! There's More! | |
| |
| |
| |
Basic Network Concepts | |
| |
| |
Networks | |
| |
| |
The Layers of a Network | |
| |
| |
IP, TCP, and UDP | |
| |
| |
The Internet | |
| |
| |
The Client/Server Model | |
| |
| |
Internet Standards | |
| |
| |
| |
Basic Web Concepts | |
| |
| |
URIs | |
| |
| |
HTML, SGML, and XML | |
| |
| |
HTTP | |
| |
| |
MIME Media Types | |
| |
| |
Server-Side Programs | |
| |
| |
| |
Streams | |
| |
| |
Output Streams | |
| |
| |
Input Streams | |
| |
| |
Filter Streams | |
| |
| |
Readers and Writers | |
| |
| |
| |
Threads | |
| |
| |
Running Threads | |
| |
| |
Returning Information from a Thread | |
| |
| |
Synchronization | |
| |
| |
Deadlock | |
| |
| |
Thread Scheduling | |
| |
| |
Thread Pools | |
| |
| |
| |
Looking Up Internet Addresses | |
| |
| |
The InetAddress Class | |
| |
| |
Inet4Address and Inet6Address | |
| |
| |
The NetworkInterface Class | |
| |
| |
Some Useful Programs | |
| |
| |
| |
URLs and URIs | |
| |
| |
The URL Class | |
| |
| |
The URLEncoder and URLDecoder Classes | |
| |
| |
The URI Class | |
| |
| |
Proxies | |
| |
| |
Communicating with Server-Side Programs Through GET | |
| |
| |
Accessing Password-Protected Sites | |
| |
| |
| |
HTML in Swing | |
| |
| |
HTML on Components | |
| |
| |
JEditorPane | |
| |
| |
Parsing HTML | |
| |
| |
Cookies | |
| |
| |
| |
Sockets for Clients | |
| |
| |
Socket Basics | |
| |
| |
Investigating Protocols with Telnet | |
| |
| |
The Socket Class | |
| |
| |
Socket Exceptions | |
| |
| |
Socket Addresses | |
| |
| |
Examples | |
| |
| |
| |
Sockets for Servers | |
| |
| |
The ServerSocket Class | |
| |
| |
Some Useful Servers | |
| |
| |
| |
Secure Sockets | |
| |
| |
Secure Communications | |
| |
| |
Creating Secure Client Sockets | |
| |
| |
Methods of the SSLSocket Class | |
| |
| |
Creating Secure Server Sockets | |
| |
| |
Methods of the SSLServerSocket Class | |
| |
| |
| |
Non-Blocking I/O | |
| |
| |
An Example Client | |
| |
| |
An Example Server | |
| |
| |
Buffers | |
| |
| |
Channels | |
| |
| |
Readiness Selection | |
| |
| |
| |
UDP Datagrams and Sockets | |
| |
| |
The UDP Protocol | |
| |
| |
The DatagramPacket Class | |
| |
| |
The DatagramSocket Class | |
| |
| |
Some Useful Applications | |
| |
| |
DatagramChannel | |
| |
| |
| |
Multicast Sockets | |
| |
| |
What Is a Multicast Socket? | |
| |
| |
Working with Multicast Sockets | |
| |
| |
Two Simple Examples | |
| |
| |
| |
URLConnections | |
| |
| |
Opening URLConnections | |
| |
| |
Reading Data from a Server | |
| |
| |
Reading the Header | |
| |
| |
Configuring the Connection | |
| |
| |
Configuring the Client Request HTTP Header | |
| |
| |
Writing Data to a Server | |
| |
| |
Content Handlers | |
| |
| |
The Object Methods | |
| |
| |
Security Considerations for URLConnections | |
| |
| |
Guessing MIME Content Types | |
| |
| |
HttpURLConnection | |
| |
| |
Caches | |
| |
| |
JarURLConnection | |
| |
| |
| |
Protocol Handlers | |
| |
| |
What Is a Protocol Handler? | |
| |
| |
The URLStreamHandler Class | |
| |
| |
Writing a Protocol Handler | |
| |
| |
More Protocol Handler Examples and Techniques | |
| |
| |
The URLStreamHandlerFactory Interface | |
| |
| |
| |
Content Handlers | |
| |
| |
What Is a Content Handler? | |
| |
| |
The ContentHandler Class | |
| |
| |
The ContentHandlerFactory Interface | |
| |
| |
A Content Handler for the FITS Image Format | |
| |
| |
| |
Remote Method Invocation | |
| |
| |
What Is Remote Method Invocation? | |
| |
| |
Implementation | |
| |
| |
Loading Classes at Runtime | |
| |
| |
The java.rmi Package | |
| |
| |
The java.rmi.registry Package | |
| |
| |
The java.rmi.server Package | |
| |
| |
| |
The JavaMail API | |
| |
| |
What Is the JavaMail API? | |
| |
| |
Sending Email | |
| |
| |
Receiving Mail | |
| |
| |
Password Authentication | |
| |
| |
Addresses | |
| |
| |
The URLName Class | |
| |
| |
The Message Class | |
| |
| |
The Part Interface | |
| |
| |
Multipart Messages and File Attachments | |
| |
| |
MIME Messages | |
| |
| |
Folders | |
| |
| |
Index | |