Server configuration

The configuration of a server depends on the technology that was used to build it. Here, we will focus on the configuration of the URLConnection class. This class has a number of protected fields that control how the connection behaves. These fields are accessed using corresponding get and set methods.

One field deals with user interactions. When set to true, it allows users to engage in interactions, such as responding to an authentication dialog box. A connection can be used for input and/or output. The connection can be configured to disallow input or output.

When data is transferred between a client and a server, it may be cached. The UseCaches variable determines whether caches are ignored or not. If set to true, then caches ...

Get Learning Network Programming with Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.