Interface ResponseEntityBuilder

All Known Implementing Classes:
DefaultResponseEntityBuilder

public interface ResponseEntityBuilder
Interface for building a ResponseEntity with a ResponseObject as body.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> org.springframework.http.ResponseEntity<ResponseObject<T>>
    build(T data, org.springframework.http.HttpStatus responseState)
    Build a ResponseEntity with a ResponseObject as body.
  • Method Details

    • build

      <T> org.springframework.http.ResponseEntity<ResponseObject<T>> build(T data, org.springframework.http.HttpStatus responseState)
      Build a ResponseEntity with a ResponseObject as body.
      Type Parameters:
      T - the type of the data
      Parameters:
      data - the data to be returned
      responseState - the http status to be returned
      Returns:
      the response entity