public final class RestUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RestUtils.ErrorResponse
Error response when
RestUtils.RestCallable.call() throws an exception. |
static interface |
RestUtils.RestCallable<T>
An interface representing a callable.
|
Modifier and Type | Method and Description |
---|---|
static <T> javax.ws.rs.core.Response |
call(RestUtils.RestCallable<T> callable)
Calls the given
RestUtils.RestCallable and handles any exceptions thrown. |
public static <T> javax.ws.rs.core.Response call(RestUtils.RestCallable<T> callable)
RestUtils.RestCallable
and handles any exceptions thrown.T
- the return type of the callablecallable
- the callable to callCopyright © 2023. All Rights Reserved.