-
- All Implemented Interfaces:
public class Util
-
-
Method Summary
Modifier and Type Method Description final static String
normalizeContextPath(String contextPath)
final static String
prefixContextPath(String contextPath, String path)
final Boolean
classExists(String className)
final static Unit
printHelpfulMessageIfLoggerIsMissing()
final static Unit
logJavalinBanner(Boolean showBanner)
final static Unit
logJavalinVersion()
final String
getChecksumAndReset(ByteArrayInputStream inputStream)
final static URL
getResourceUrl(String path)
final URL
getFileUrl(String path)
final static String
getPort(Exception e)
final <T extends Any> T
findByClass(Map<Class<out Exception>, T> map, Class<out Exception> exceptionClass)
-
-
Method Detail
-
normalizeContextPath
final static String normalizeContextPath(String contextPath)
-
prefixContextPath
final static String prefixContextPath(String contextPath, String path)
-
classExists
final Boolean classExists(String className)
-
printHelpfulMessageIfLoggerIsMissing
final static Unit printHelpfulMessageIfLoggerIsMissing()
-
logJavalinBanner
final static Unit logJavalinBanner(Boolean showBanner)
-
logJavalinVersion
final static Unit logJavalinVersion()
-
getChecksumAndReset
final String getChecksumAndReset(ByteArrayInputStream inputStream)
-
getResourceUrl
final static URL getResourceUrl(String path)
-
getFileUrl
final URL getFileUrl(String path)
-
-
-
-