public class ServiceUtils extends Object
Constructor and Description |
---|
ServiceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanup(org.slf4j.Logger log,
Closeable... closeables)
Close the Closeable objects and ignore any
IOException or
null pointers. |
static int |
indexOfDomainMatch(String userName) |
public static int indexOfDomainMatch(String userName)
public static void cleanup(org.slf4j.Logger log, Closeable... closeables)
IOException
or
null pointers. Must only be used for cleanup in exception handlers.log
- the log to record problems to at debug level. Can be null.closeables
- the objects to closeCopyright © 2022 The Apache Software Foundation. All rights reserved.