public class Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Utils.ModeClause |
| Modifier and Type | Field and Description |
|---|---|
static ScheduledExecutorService |
scheduledServicePool |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeSafely(Closeable c) |
static Utils.ModeClause |
fileAt(String path) |
static Throwable |
getCause(Throwable e) |
static org.gcube.common.authorization.library.provider.ServiceInfo |
getServiceInfo(ApplicationContext application) |
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 final ScheduledExecutorService scheduledServicePool
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)
public static org.gcube.common.authorization.library.provider.ServiceInfo getServiceInfo(ApplicationContext application)
Copyright © 2020. All Rights Reserved.