| com.sun.portal.proxylet.servlet.PacScriptEvaluator
PacScriptEvaluator | public class PacScriptEvaluator extends ScriptableObject (Code) | | |
dnsDomainLevels | public static int dnsDomainLevels(String host)(Code) | | |
isInNet | public static boolean isInNet(String host, String pattern, String mask)(Code) | | This function checks whether the host IP matches
the pattern based on the given mask
For example isInNet( "127.123.2.2", "127.0.0.0", "255.0.0.0")
would evaluate to true.
|
isPlainHostName | public static boolean isPlainHostName(String host)(Code) | | |
isResolvable | public static boolean isResolvable(String host)(Code) | | |
localHostOrDomainIs | public static boolean localHostOrDomainIs(String host, String domain)(Code) | | |
setMyIpAddress | public void setMyIpAddress(String clientIP)(Code) | | |
shExpMatch | public static boolean shExpMatch(String url, String exp)(Code) | | This function can be used by the javascript to check
if the given url falls under the domain exp
For example, shExpMatch("http://epubs.siam.org/sam-bin",
"http://epubs.siam.org/sam-bin/dbq/toclist/*")
would evaluate to true
|
|
|