T - 返回的实体对象public class RestResponseWrapper<T>
extends org.springframework.http.ResponseEntity<T>
| 构造器和说明 |
|---|
RestResponseWrapper(org.springframework.http.HttpStatus status) |
RestResponseWrapper(org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.http.HttpStatus status) |
RestResponseWrapper(T body,
org.springframework.http.HttpStatus status) |
RestResponseWrapper(T body,
org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.http.HttpStatus status) |
| 限定符和类型 | 方法和说明 |
|---|---|
static RestResponseWrapper<RestfulError> |
badReRequestResponse(String code,
String message) |
static <T> RestResponseWrapper<T> |
createdResponse(T body) |
static <T> RestResponseWrapper<T> |
noContentResponse() |
static <T> RestResponseWrapper<T> |
okResponse(T body) |
static RestResponseWrapper<RestfulError> |
restfulError(org.springframework.http.HttpStatus status,
String code,
String message) |
public RestResponseWrapper(org.springframework.http.HttpStatus status)
public RestResponseWrapper(T body, org.springframework.http.HttpStatus status)
public RestResponseWrapper(org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
public static <T> RestResponseWrapper<T> createdResponse(T body)
public static <T> RestResponseWrapper<T> okResponse(T body)
public static <T> RestResponseWrapper<T> noContentResponse()
public static RestResponseWrapper<RestfulError> badReRequestResponse(String code, String message)
public static RestResponseWrapper<RestfulError> restfulError(org.springframework.http.HttpStatus status, String code, String message)
Copyright © 2020. All rights reserved.