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 are used as appropriate. If false
, caching is not performed.
The ifModifiedSince
variable controls whether the retrieval of an object occurs. It is a long value that represents time as the number of milliseconds since the epoch (January 1, 1970...