Sun Java System Web Proxy Server 4.0.2 2005Q4 Administration Guide

isPlainhost name(host)

The isPlainhost name() function detects whether the host name in the requested URL is a plain host name or a fully qualified domain name. This function is useful if you want Netscape Navigator to connect directly to local servers as illustrated in Example 1: Proxy All Servers Except Local Hosts and Example 2: Proxy Local Servers Outside the Firewall.

Parameters:

host is the host name from the URL (excluding port number) only if the host name has no domain name (no dotted segments).

Returns:

true if host is local; false if host is remote

Example:

isPlainhost name("host")

If host is something like www, then it returns true; if host is something like www.example.com, it returns false.