Microsoft SDK for Java

setCanConnectToFileURLCodeBase

This method of the NetIOPermission Class sets the flag that controls whether classes that possess this permission can connect to the local host if the codebase URL associated with the classes is a file:// URL.

Syntax

public void setCanConnectToFileURLCodeBase(boolean f);

Parameters

f If this value is true, the permission will allow connections back to the local host if the codebase URL is a file:// URL.

Remarks

If this flag is set to true, a later "codebase" adjustment using the adjustPermission method will include the local host in the set of hosts that this permission can connect to.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.