Package org.gcube.smartgears.utils
Class Utils
java.lang.Object
org.gcube.smartgears.utils.Utils
Library-wide utils.
- Author:
- Fabio Simeoni
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic Utils.ModeClausestatic Throwablestatic org.gcube.common.authorization.library.provider.ServiceInfogetServiceInfo(ApplicationContext application) static voidhandleError(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Throwable t) static Stringhome()static voidstatic voidstatic voidnotEmpty(String name, Collection<?> o) static voidstatic voidstatic voidstatic Stringstatic RuntimeExceptionstatic voidstatic void
-
Field Details
-
scheduledServicePool
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
unchecked
-
smartgearsVersion
-
rethrowUnchecked
- Throws:
RuntimeException
-
closeSafely
-
valid
- Throws:
IllegalArgumentException
-
notNull
- Throws:
IllegalArgumentException
-
notNull
- Throws:
IllegalArgumentException
-
notEmpty
- Throws:
IllegalArgumentException
-
notEmpty
- Throws:
IllegalArgumentException
-
notEmpty
- Throws:
IllegalArgumentException
-
valid
- Throws:
IllegalArgumentException
-
home
-
handleError
public static void handleError(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Throwable t) throws IOException - Throws:
IOException
-
fileAt
-
getServiceInfo
public static org.gcube.common.authorization.library.provider.ServiceInfo getServiceInfo(ApplicationContext application) -
getCause
-