public class ResponseHelper extends Object
| Constructor and Description |
|---|
ResponseHelper() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Response<T> |
badRequest(Map<String,List<String>> errors) |
static <T> Response<T> |
internalServerError() |
static <T> Response<T> |
ok() |
static <T> Response<T> |
ok(T data) |
static <T> Response<T> |
ok(T data,
Paging paging) |
static <T> Response<T> |
status(org.springframework.http.HttpStatus status) |
static <T> Response<T> |
status(org.springframework.http.HttpStatus status,
T data) |
static <T> Response<T> |
status(org.springframework.http.HttpStatus status,
T data,
Paging paging) |
static <T> Response<T> |
status(org.springframework.http.HttpStatus status,
T data,
Paging paging,
Map<String,List<String>> errors) |
static <T> Response<T> |
unauthorized() |
public static <T> Response<T> ok()
public static <T> Response<T> ok(T data)
public static <T> Response<T> internalServerError()
public static <T> Response<T> unauthorized()
public static <T> Response<T> status(org.springframework.http.HttpStatus status)
public static <T> Response<T> status(org.springframework.http.HttpStatus status, T data)
public static <T> Response<T> status(org.springframework.http.HttpStatus status, T data, Paging paging)
Copyright © 2021. All rights reserved.