Movatterモバイル変換


[0]ホーム

URL:


Networking Properties

There are a few standard system properties used toalter the mechanisms and behavior of the various classes of thejava.net package. Some are checked only once at startup of the VM,and therefore are best set using the -D option of the java command,while others have a more dynamic nature and can also be changed usingtheSystem.setProperty() API. The purpose of this document is to listand detail all of these properties.

If there is no special note, a property value is checked every time it is used.

IPv4 / IPv6

Both of these properties are checked only once, at startup.

Proxies

A proxy server allows indirect connection to network services andis used mainly for security (to get through firewalls) andperformance reasons (proxies often do provide caching mechanisms).The following properties allow for configuration of the various typeof proxies.

Misc HTTP properties

All these properties are checked only once at startup.

Address Cache

The java.net package, when doing name resolution, uses an addresscache for both security and performance reasons. Any addressresolution attempt, be it forward (name to IP address) or reverse (IPaddress to name), will have its result cached, whether it wassuccessful or not, so that subsequent identical requests will nothave to access the naming service. These properties allow for sometuning on how the cache is operating.

Since these 2 properties are part of the security policy, they arenot set by either the -D option or the System.setProperty() API,instead they are set in the JRE security policy filelib/security/java.security.


[8]ページ先頭

©2009-2025 Movatter.jp