T
- the response's body typepublic class RestResponseEntity<T>
extends org.springframework.http.ResponseEntity<T>
ResponseEntity
that offers an ErrorModel
, which contains details about potential errors on the server side.Constructor and Description |
---|
RestResponseEntity(ErrorModel error,
org.springframework.http.HttpStatus status) |
RestResponseEntity(ErrorModel error,
org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.http.HttpStatus status) |
RestResponseEntity(org.springframework.http.HttpStatus status) |
RestResponseEntity(org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.http.HttpStatus status) |
RestResponseEntity(T body,
org.springframework.http.HttpStatus status) |
RestResponseEntity(T body,
org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.http.HttpStatus status) |
Modifier and Type | Method and Description |
---|---|
ErrorModel |
getError()
The error, if any
|
static <T> RestResponseEntity<T> |
of(org.springframework.http.ResponseEntity<T> exchange) |
public RestResponseEntity(org.springframework.http.HttpStatus status)
public RestResponseEntity(org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
public RestResponseEntity(T body, org.springframework.http.HttpStatus status)
public RestResponseEntity(T body, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
public RestResponseEntity(ErrorModel error, org.springframework.http.HttpStatus status)
public RestResponseEntity(ErrorModel error, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpStatus status)
public ErrorModel getError()
public static <T> RestResponseEntity<T> of(org.springframework.http.ResponseEntity<T> exchange)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.