-
public final class ControllerUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> Tor404(Optional<T> $self, String message)final static LinkwithRel(WebMvcLinkBuilder $self, KProperty1<?, ?> property)final static HttpClientErrorExceptioncreateHttpException(HttpStatus status, String message)final static VoidthrowHttpException(HttpStatus status, String message)final static Map<String, ?>rpcErrorResponse(String message, Integer code, String extra)final static Map<String, ?>rpcErrorsResponse(RpcError error)final static Map<String, ?>rpcSuccessResponse(String message)final static WebMvcLinkBuildercreateSafeLink(KFunction<?> func, Object params)-
-
Method Detail
-
withRel
final static Link withRel(WebMvcLinkBuilder $self, KProperty1<?, ?> property)
-
createHttpException
final static HttpClientErrorException createHttpException(HttpStatus status, String message)
-
throwHttpException
final static Void throwHttpException(HttpStatus status, String message)
-
rpcErrorResponse
final static Map<String, ?> rpcErrorResponse(String message, Integer code, String extra)
-
rpcErrorsResponse
final static Map<String, ?> rpcErrorsResponse(RpcError error)
-
rpcSuccessResponse
final static Map<String, ?> rpcSuccessResponse(String message)
-
createSafeLink
final static WebMvcLinkBuilder createSafeLink(KFunction<?> func, Object params)
-
-
-
-