public class SystemPropertyValidator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.Throwable> |
checkHttpTimeoutProperty(java.util.function.Function<java.lang.String,T> exceptionFactory)
Checks the
jib.httpTimeout system property for invalid (non-integer or negative)
values. |
public static <T extends java.lang.Throwable> void checkHttpTimeoutProperty(java.util.function.Function<java.lang.String,T> exceptionFactory)
throws T extends java.lang.Throwable
jib.httpTimeout system property for invalid (non-integer or negative)
values.T - the exception type to throw if invalid valuesexceptionFactory - factory to create an exception with the given descriptionT - if invalid valuesT extends java.lang.Throwable