Package io.domainlifecycles.spring.http
Interface ResponseEntityBuilder
- All Known Implementing Classes:
DefaultResponseEntityBuilder
public interface ResponseEntityBuilder
Interface for building a
ResponseEntity with a ResponseObject as body.-
Method Summary
Modifier and TypeMethodDescription<T> org.springframework.http.ResponseEntity<ResponseObject<T>>build(T data, org.springframework.http.HttpStatus responseState) Build aResponseEntitywith aResponseObjectas body.
-
Method Details
-
build
<T> org.springframework.http.ResponseEntity<ResponseObject<T>> build(T data, org.springframework.http.HttpStatus responseState) Build aResponseEntitywith aResponseObjectas body.- Type Parameters:
T- the type of the data- Parameters:
data- the data to be returnedresponseState- the http status to be returned- Returns:
- the response entity
-