Compare commits
No commits in common. '7fc8b6362c4143942d6216b909be607e117dcb41' and 'fec30b826c6915a3300b782d206467b02a43388a' have entirely different histories.
7fc8b6362c
...
fec30b826c
@ -1,4 +1,4 @@
|
|||||||
package fr.sixthemes.servlets;
|
package fr.sixthemes;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package fr.sixthemes.servlets;
|
package fr.sixthemes;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
package fr.sixthemes.beans;
|
|
||||||
|
|
||||||
public class NetConf {
|
|
||||||
|
|
||||||
protected String ipAddress;
|
|
||||||
protected String gateway;
|
|
||||||
protected String network;
|
|
||||||
protected String configuration;
|
|
||||||
|
|
||||||
public NetConf() {
|
|
||||||
this.ipAddress = "";
|
|
||||||
this.gateway = "";
|
|
||||||
this.network = "vmbr0";
|
|
||||||
this.configuration = "dhcp";
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
package fr.sixthemes.utils;
|
|
||||||
|
|
||||||
import java.util.regex.Matcher;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
public abstract class Utils {
|
|
||||||
|
|
||||||
public static boolean isValidIP(String ipAddress) {
|
|
||||||
|
|
||||||
Pattern p = Pattern.compile("");
|
|
||||||
Matcher m = p.matcher(ipAddress);
|
|
||||||
|
|
||||||
if(!m.find()) return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue