Microsoft SDK for Java

setCanConnectToNonFileURLCodeBase

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

Syntax

public void setCanConnectToNonFileURLCodeBase(boolean f);

Parameters

f If this value is true, the permission allows connections back to the originating host if the codebase URL is not a file:// URL.

Remarks

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

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