Java Network Programming, 3/e (Paperback)

Elliotte Rusty Harold

  • 出版商: O'Reilly
  • 售價: $1,560
  • 貴賓價: 9.5$1,482
  • 語言: 英文
  • 頁數: 504
  • 裝訂: Paperback
  • ISBN: 0596007213
  • ISBN-13: 9780596007218
  • 相關分類: Java 程式語言
  • 已過版

買這商品的人也買了...

相關主題

商品描述

Description:

The new third edition of this highly regarded introduction to Java networking programming has been thoroughly revised to cover all of the 100+ significant updates to Java Developers Kit (JDK) 1.5. It is a clear, complete introduction to developing network programs (both applets and applications) using Java, covering everything from networking fundamentals to remote method invocation (RMI).

Java Network Programming, 3rd Edition includes chapters on TCP and UDP sockets, multicasting protocol and content handlers, servlets, multithreaded network programming, I/O, HTML parsing and display, the Java Mail API, and the Java Secure Sockets Extension. There's also significant information on the New I/O API that was developed in large part because of the needs of network programmers.

This invaluable book is a complete, single source guide to writing sophisticated network applications. Packed with useful examples, it is the essential resource for any serious Java developer.

 

Table of Contents:

Preface

1. Why Networked Java?
      What Can a Network Program Do?
      Security
      But Wait! There's More!

2. Basic Network Concepts
      Networks
      The Layers of a Network
      IP, TCP, and UDP
      The Internet
      The Client/Server Model
      Internet Standards

3. Basic Web Concepts
      URIs
      HTML, SGML, and XML
      HTTP
      MIME Media Types
      Server-Side Programs

4. Streams
      Output Streams
      Input Streams
      Filter Streams
      Readers and Writers

5. Threads
      Running Threads
      Returning Information from a Thread
      Synchronization
      Deadlock
      Thread Scheduling
      Thread Pools

6. Looking Up Internet Addresses
      The InetAddress Class
      Inet4Address and Inet6Address
      The NetworkInterface Class
      Some Useful Programs

7. 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

8. HTML in Swing
      HTML on Components
      JEditorPane
      Parsing HTML
      Cookies

9. Sockets for Clients
      Socket Basics
      Investigating Protocols with Telnet
      The Socket Class
      Socket Exceptions
      Socket Addresses
      Examples

10. Sockets for Servers
      The ServerSocket Class
      Some Useful Servers

11. Secure Sockets
      Secure Communications
      Creating Secure Client Sockets
      Methods of the SSLSocket Class
      Creating Secure Server Sockets
      Methods of the SSLServerSocket Class

12. Non-Blocking I/O
      An Example Client
      An Example Server
      Buffers
      Channels
      Readiness Selection

13. UDP Datagrams and Sockets
      The UDP Protocol
      The DatagramPacket Class
      The DatagramSocket Class
      Some Useful Applications
      DatagramChannel

14. Multicast Sockets
      What Is a Multicast Socket?
      Working with Multicast Sockets
      Two Simple Examples

15. 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

16. Protocol Handlers
      What Is a Protocol Handler?
      The URLStreamHandler Class
      Writing a Protocol Handler
      More Protocol Handler Examples and Techniques
      The URLStreamHandlerFactory Interface

17. Content Handlers
      What Is a Content Handler?
      The ContentHandler Class
      The ContentHandlerFactory Interface
      A Content Handler for the FITS Image Format

18. 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

19. 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