1. Trang chủ
  2. » Công Nghệ Thông Tin

OReilly java network programming 3rd edition oct 2004 ISBN 0596007213

1,7K 127 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.660
Dung lượng 6,08 MB

Nội dung

• • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic Java Network Programming, 3rd Edition By Elliotte Rusty Harold Publisher : O'Reilly Pub Date : October 2004 ISBN : 0-596-00721-3 Pages : 706 Thoroughly revised to cover all the 100+ significant updates to Java Developers Kit (JDK) 1.5, Java Network Programming is a complete introduction to developing network programs (both applets and applications) using Java, covering everything from networking fundamentals to remote method invocation (RMI) It includes chapters on TCP and UDP sockets, multicasting protocol and content handlers, servlets, and the new I/O API This is the essential resource for any serious Java developer • • • • • • Table of Contents Index Reviews Reader Reviews Errata Academic Java Network Programming, 3rd Edition By Elliotte Rusty Harold Publisher : O'Reilly Pub Date : October 2004 ISBN : 0-596-00721-3 Pages : 706 Copyright Preface About the Third Edition Organization of the Book Who You Are About the Examples Request for Comments Java Versions Conventions Used in This Book Comments and Questions Acknowledgments Chapter 1 Why Networked Java? Section 1.1 What Can a Network Program Do? Section 1.2 Security Section 1.3 But Wait! There's More! Chapter 2 Basic Network Concepts Section 2.1 Networks Section 2.2 The Layers of a Network Section 2.3 IP, TCP, and UDP Section 2.5 The Client/Server Model Section 2.4 The Internet Section 2.6 Internet Standards Chapter 3 Basic Web Concepts Section 3.1 URIs Section 3.2 HTML, SGML, and XML Section 3.3 HTTP Section 3.4 MIME Media Types Section 3.5 Server-Side Programs Chapter 4 Streams Section 4.1 Output Streams Section 4.2 Input Streams Section 4.3 Filter Streams Section 4.4 Readers and Writers Chapter 5 Threads Section 5.1 Running Threads Section 5.2 Returning Information from a Thread Section 5.4 Deadlock Section 5.3 Synchronization Section 5.5 Thread Scheduling Section 5.6 Thread Pools Chapter 6 Looking Up Internet Addresses Section 6.1 The InetAddress Class Section 6.2 Inet4Address and Inet6Address Section 6.3 The NetworkInterface Class Section 6.4 Some Useful Programs Chapter 7 URLs and URIs Section 7.1 The URL Class Section 7.2 The URLEncoder and URLDecoder Classes Section 7.4 Proxies Section 7.3 The URI Class Section 7.5 Communicating with Server-Side Programs Through GET Section 7.6 Accessing Password-Protected Sites Chapter 8 HTML in Swing Section 8.1 HTML on Components Section 8.2 JEditorPane Section 8.3 Parsing HTML Section 8.4 Cookies Chapter 9 Sockets for Clients Section 9.1 Socket Basics Section 9.2 Investigating Protocols with Telnet Section 9.3 The Socket Class Section 9.5 Socket Addresses Section 9.4 Socket Exceptions Section 9.6 Examples Chapter 10 Sockets for Servers Section 10.1 The ServerSocket Class Section 10.2 Some Useful Servers Chapter 11 Secure Sockets Section 11.1 Secure Communications Section 11.2 Creating Secure Client Sockets Section 11.3 Methods of the SSLSocket Class Section 11.4 Creating Secure Server Sockets Section 11.5 Methods of the SSLServerSocket Class Chapter 12 Non-Blocking I/O Section 12.1 An Example Client Section 12.2 An Example Server Section 12.4 Channels Section 12.3 Buffers Section 12.5 Readiness Selection Chapter 13 UDP Datagrams and Sockets Section 13.1 The UDP Protocol Section 13.2 The DatagramPacket Class Section 13.3 The DatagramSocket Class Section 13.4 Some Useful Applications Section 13.5 DatagramChannel Chapter 14 Multicast Sockets Section 14.1 What Is a Multicast Socket? Section 14.2 Working with Multicast Sockets Section 14.3 Two Simple Examples Chapter 15 URLConnections Section 15.1 Opening URLConnections Section 15.2 Reading Data from a Server Section 15.3 Reading the Header Section 15.5 Configuring the Client Request HTTP Header Section 15.4 Configuring the Connection Section 15.6 Writing Data to a Server Section 15.8 The Object Methods Section 15.10 Guessing MIME Content Types Section 15.12 Caches Section 15.7 Content Handlers Section 15.9 Security Considerations for URLConnections Section 15.11 HttpURLConnection Section 15.13 JarURLConnection Chapter 16 Protocol Handlers Section 16.1 What Is a Protocol Handler? Section 16.2 The URLStreamHandler Class Section 16.3 Writing a Protocol Handler Section 16.4 More Protocol Handler Examples and Techniques Section 16.5 The URLStreamHandlerFactory Interface Chapter 17 Content Handlers Section 17.1 What Is a Content Handler? Section 17.2 The ContentHandler Class Section 17.3 The ContentHandlerFactory Interface Section 17.4 A Content Handler for the FITS Image Format Chapter 18 Remote Method Invocation Section 18.1 What Is Remote Method Invocation? Section 18.2 Implementation Section 18.4 The java.rmi Package Section 18.3 Loading Classes at Runtime Section 18.5 The java.rmi.registry Package Section 18.6 The java.rmi.server Package Chapter 19 The JavaMail API Section 19.1 What Is the JavaMail API? Section 19.2 Sending Email Section 19.4 Password Authentication Section 19.6 The URLName Class Section 19.8 The Part Interface Section 19.10 MIME Messages Section 19.3 Receiving Mail Section 19.5 Addresses Section 19.7 The Message Class Section 19.9 Multipart Messages and File Attachments Section 19.11 Folders Colophon Index Copyright © 2005, 2000, 1997 O'Reilly Media, Inc All rights reserved Printed in the United States of America Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O'Reilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://safari.oreilly.com) For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc Java™ Network Programming, Third Edition, the image of a river otter, and related trade dress are trademarks of O'Reilly Media, Inc Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc., in the United States and other countries O'Reilly Media, Inc is independent of Sun Microsystems Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O'Reilly Media, Inc was aware of a trademark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein Preface Java's growth over the last 10 years has been nothing short of phenomenal Given Java's rapid rise to prominence and the even more spectacular growth of the Internet, it's a little surprising that network programming in Java is still so mysterious to so many It doesn't have to be In fact, writing network programs in Java is quite simple, as this book will show Readers with previous experience in network programming in a Unix, Windows, or Macintosh environment should be pleasantly surprised at how much easier it is to write equivalent programs in Java The Java core API includes welldesigned interfaces to most network features Indeed, there is very little application-layer network software you can write in C or C++ that you can't write more easily in Java Java Network Programming, 3rd Edition endeavors to show you how to take advantage of Java's network class library to quickly and easily write programs that accomplish many common networking tasks Some of these include: Browsing the Web with HTTP Parsing and rendering HTML Sending email with SMTP Receiving email with POP and IMAP Writing multithreaded servers Installing new protocol and content handlers into browsers Encrypting communications for confidentiality, authentication, and guaranteed message integrity Designing GUI clients for network services Posting data to server-side programs Looking up hosts using DNS Downloading files with anonymous FTP Connecting sockets for low-level network communication Distributing applications across multiple systems with Remote Method Invocation Java is the first language to provide such a powerful crossplatform network library, which handles all these diverse tasks Java Network Programming exposes the power and sophistication of this library This book's goal is to enable you to start using Java as a platform for serious network programming To do so, this book provides a general background in network fundamentals, as well as detailed discussions of Java's facilities for writing network programs You'll learn how to write Java programs that share data across the Internet for games, collaboration, software updates, file transfer, and more You'll also get a behind-the-scenes look at HTTP, SMTP, TCP/IP, and the other protocols that support the Internet and the Web When you finish this book, you'll have the knowledge and the tools to create the next generation of software that takes full advantage of the Internet About the Third Edition In 1996, in the first chapter of the first edition of this book, I wrote extensively about the sort of dynamic, distributed network applications I thought Java would make possible One of the most exciting parts of writing subsequent editions has been seeing virtually all of the applications I foretold come to pass Programmers are using Java to query database servers, monitor web pages, control telescopes, manage multiplayer games, and more, all by using Java's native ability to access the Internet Java in general and network programming in Java in particular has moved well beyond the hype stage and into the realm of real, working applications Not all network software is yet written in Java, but it's not for a lack of trying Efforts are well under way to subvert the existing infrastructure of C-based network clients and servers with pure Java replacements Clients for newer protocols like Gnutella and Freenet are preferentially written in Java It's unlikely that Java will replace C for all network programming in the near future However, the mere fact that many people are willing to use web browsers, web servers, and more written in Java shows just how far we've come since 1996 This book has come a long way, too The third edition has one completely new chapter to describe the most significant development in network programming since readers and writers were introduced in Java 1.1 I refer of course to the new I/O APIs in the java.nio package The ability to perform asynchronous, non-blocking I/O operations is critical for highperformance network applications, especially servers It removes one of the last barriers to using Java for network servers Many other chapters have been updated to take advantage of these new I/O APIs There've been lots of other small changes and updates throughout the java.net and supporting packages in Java 1.4 ... feature in the latest release of Java I normally simply refer to Java 1.1, Java 1.2, Java 1.3, Java 1.4, and Java 1.5 Overall, though, the networking API seems fairly stable Java 1.1 through Java 1.3 are very similar, and there are a few only... The Java core API includes welldesigned interfaces to most network features Indeed, there is very little application-layer network software you can write in C or C++ that you can't write more easily in Java Java Network Programming, 3rd Edition endeavors to show you how to take... also makes available the "Java 2 Platform, Enterprise Edition (J2EE©)" and "Java 2 Platform, Micro Edition (J2ME©)" The Enterprise Edition is a superset of the standard edition that adds features like the Java Naming and Directory Interface and

Ngày đăng: 26/03/2019, 16:32

TỪ KHÓA LIÊN QUAN