|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gridsystems.utils.windows.Firewall
public final class Firewall
Wrapper for the Windows firewall profile.
Method Summary | |
---|---|
static boolean |
closePort(int port)
Closes a port in the firewall. |
static boolean |
isEnabled()
Gets if the windows firewall is enabled. |
static boolean |
isPresent()
Gets if the windows firewall is installed on this system. |
static boolean |
openPort(java.lang.String serviceName,
int port)
Opens a port in the firewall. |
static boolean |
setEnabled(boolean enable)
Gets if the windows firewall is enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isPresent() throws FirewallException
FirewallException
public static boolean isEnabled() throws FirewallException
FirewallException
public static boolean setEnabled(boolean enable) throws FirewallException
enable
- true if the firewall is to be enabled
FirewallException
public static boolean openPort(java.lang.String serviceName, int port) throws FirewallException
serviceName
- The name of the portport
- The port number
FirewallException
- If an error occurspublic static boolean closePort(int port) throws FirewallException
port
- The port number
FirewallException
- If an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |