Corrections to Chapter 15 of Java Network Programming, 3rd Edition, URLConnections

p. 519: To make Example 15-8 compile, you need to add a no-args constructor to the QueryString class from Chapter 7. I cut that constructor in final edits without noticing its absence would break this example.

On p. 544 in Example 15-11

package java.net

should be

package java.net;

On p. 544 in the final paragraph change getOutputStream() to getBody().

On p. 545 in Example 15-13

public abstract class CacheRequest

should be

public abstract class CacheResponse

p. 549: In the second paragraph change Example 15-13 to Example 15-15.


[ Java Network Programming Corrections | Java Network Programming Home Page | Table of Contents | Examples | Order from Amazon ] ]

Copyright 2005, 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified August 1, 2006