|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.security.Access
wt.security.NetAccess
public class NetAccess
Class that provides wrappers to priviledged network methods using
the wt.security package. This allows applets to perform network
operations that are typically restricted by the sandbox.
Supported API: true
| Method Summary | |
|---|---|
void |
connect(URLConnection connection)
Wrapper for URLConnection.connect() method |
byte[] |
getAddress(InetAddress inetaddress)
Wrapper for InetAddress.getAddress() method |
String |
getHostAddress(InetAddress inetaddress)
Wrapper for InetAddress.getHostAddress() method |
String |
getHostName(InetAddress inetaddress)
Wrapper for InetAddress.getHostName() method |
InetAddress |
getLocalHost()
Wrapper for InetAddress.getLocalHost() method Supported API: true |
static NetAccess |
getNetAccess()
Get instance of NetAccess. |
static NetAccess |
getNetAccess(Frame parentFrame)
Get instance of NetAccess. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NetAccess getNetAccess(Frame parentFrame)
NetAccess. This instance can then be used
to perform network operations that are typically restricted by the sandbox.
parentFrame - the parent frame for security dialog boxes that may be
presented
public static NetAccess getNetAccess()
NetAccess. This instance can then be used
to perform network operations that are typically restricted by the sandbox.
public final void connect(URLConnection connection)
throws WTSecurityException,
IOException
connection - the URLConnection object to be connected
WTSecurityException
IOException
public final InetAddress getLocalHost()
throws WTSecurityException,
UnknownHostException
WTSecurityException
UnknownHostException
public final byte[] getAddress(InetAddress inetaddress)
throws WTSecurityException
inetaddress - the InetAddress object to retrieve address for
WTSecurityException
public final String getHostAddress(InetAddress inetaddress)
throws WTSecurityException
inetaddress - the InetAddress object to retrieve address for
WTSecurityException
public final String getHostName(InetAddress inetaddress)
throws WTSecurityException
inetaddress - the InetAddress object to retrieve address for
WTSecurityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||