public class GeneralUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GENTLYWEB_EMAIL |
| 构造器和说明 |
|---|
GeneralUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getExceptionTraceAsString(Exception e)
Get an exception (and if it's an instance of
ChainException) the chain of
exceptions (if present) as a String. |
static void |
getMethods(Class c,
String name,
int mods,
List ms) |
static void |
validateIPv4Address(String ipaddress)
Validate an IPv4 address (string) passed in, it must conform to the following rules:
Must have 4 parts.
|
public static String GENTLYWEB_EMAIL
public static String getExceptionTraceAsString(Exception e) throws IOException
ChainException) the chain of
exceptions (if present) as a String.e - The exceptionIOException - Should never happen since we are using a StringWriter.public static void validateIPv4Address(String ipaddress) throws Exception
ipaddress - The ip address to validate.Exception - If one of the rules is broken.Copyright © 2021. All rights reserved.