Check the OpenJDK source for the sun.net.spi.DefaultProxySelector and sun.misc.Regexp . The nonProxyHosts System property is handled there for the Sun JVM. The Regexp class was written by the Java person himself, James Gosling, according to a comment by @author javadoc. All he does is regex * anywhere in the line (start, end and end). Thus, you can execute partial host names as well as partial IP addresses, such as host12* or 10.* , to match all host names starting with host12 or all IP addresses starting with 10. .. In addition, DefaultProxySelector detects localhost and 127.0.0.1 in proxy addresses and automatically excludes them. Thus, you do not need to add them to your nonProxyHosts in relation to the Sun JVM.
Now, at Weblogic, it seems that they have their own weblogic.net classes that work with the same Sun System network properties, but not always the same. I do not have a Weblogic source, but, in my opinion, it is not only the Sun JDK that uses these properties. YMMV with various proxy implementations due to errors or different semantics or interpretations of Sun's behavior and documents.
The original version of OpenJDK that I referred to was from openjdk-6 at http://download.java.net/openjdk/jdk6/ .
source share