public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSafely(Closeable c) |
static void |
handleError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable t) |
static String |
home() |
static boolean |
isResource(javax.servlet.ServletContext application) |
static void |
notEmpty(String name,
Collection<?> o) |
static void |
notEmpty(String name,
Object[] o) |
static void |
notEmpty(String name,
String o) |
static void |
notNull(Object[] o) |
static void |
notNull(String name,
Object o) |
static void |
rethrowUnchecked(Throwable t) |
static String |
smartgearsVersion() |
static RuntimeException |
unchecked(Throwable t) |
static void |
valid(String name,
Object[] o) |
static void |
valid(String name,
String o) |
public static boolean isResource(javax.servlet.ServletContext application)
public static RuntimeException unchecked(Throwable t)
public static String smartgearsVersion()
public static void rethrowUnchecked(Throwable t) throws RuntimeException
RuntimeExceptionpublic static void closeSafely(Closeable c)
public static void valid(String name, Object[] o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void notNull(Object[] o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void notNull(String name, Object o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void notEmpty(String name, String o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void notEmpty(String name, Object[] o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void notEmpty(String name, Collection<?> o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void valid(String name, String o) throws IllegalArgumentException
IllegalArgumentExceptionpublic static String home()
public static void handleError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable t)
throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.