|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.proxy.NetProxy
public class NetProxy
Constructor Summary | |
---|---|
NetProxy()
|
Method Summary | |
---|---|
static void |
checkProxy(java.net.InetAddress proxy)
|
static java.net.PasswordAuthentication |
getHttpPasswordAuthentictor()
|
static java.lang.String |
getMacAddress()
|
static void |
main(java.lang.String[] args)
|
static void |
printProxy()
|
static void |
setFtpProxy(java.lang.String host,
java.lang.String port)
|
static void |
setHttpProxy(java.lang.String host,
java.lang.String port)
|
static void |
setSoeProxy()
use a proxy server when connecting to the web. |
static int |
subnet(java.net.InetAddress subnet,
int mask)
Creates a subnet from CIDR notation. |
static int |
toInt(java.net.InetAddress inetAddress)
Converts an IP address into an integer |
static int |
toSubnet(java.net.InetAddress address,
int subnetMask)
Converts an IP address to a subnet using the provided mask |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetProxy()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.net.UnknownHostException
java.net.UnknownHostException
public static void checkProxy(java.net.InetAddress proxy)
public static int toSubnet(java.net.InetAddress address, int subnetMask)
address
- The address to convert into a subnet
public static int subnet(java.net.InetAddress subnet, int mask)
InetAddress
192.168.0.0 and the mask 24.
subnet
- The InetAddress
of the subnetmask
- The maskpublic static void printProxy() throws java.net.URISyntaxException
java.net.URISyntaxException
public static void setSoeProxy()
public static int toInt(java.net.InetAddress inetAddress)
inetAddress
- to be converted
public static void setHttpProxy(java.lang.String host, java.lang.String port)
public static void setFtpProxy(java.lang.String host, java.lang.String port)
public static java.net.PasswordAuthentication getHttpPasswordAuthentictor()
public static java.lang.String getMacAddress() throws java.net.UnknownHostException, java.net.SocketException
java.net.UnknownHostException
java.net.SocketException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |