public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Utils.ModeClause |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSafely(Closeable c) |
static Utils.ModeClause |
fileAt(String path) |
static void |
handleError(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable t) |
static String |
home() |
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 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
IOExceptionpublic static Utils.ModeClause fileAt(String path)
Copyright © 2015. All Rights Reserved.