T - the entity typepublic interface EntityResponse<T> extends ServerResponse
ServerResponse that exposes entity data.| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | EntityResponse.Builder<T>Defines a builder for  EntityResponse. | 
ServerResponse.BodyBuilder, ServerResponse.Context, ServerResponse.HeadersBuilder<B extends ServerResponse.HeadersBuilder<B>>| Modifier and Type | Method and Description | 
|---|---|
| T | entity()Return the entity that makes up this response. | 
| static <T> EntityResponse.Builder<T> | fromObject(T t)Create a builder with the given object. | 
| static <T> EntityResponse.Builder<T> | fromObject(T t,
          ParameterizedTypeReference<T> entityType)Create a builder with the given object and type reference. | 
accepted, badRequest, cookies, created, from, headers, noContent, notFound, ok, permanentRedirect, rawStatusCode, seeOther, status, status, statusCode, temporaryRedirect, unprocessableEntity, writeToT entity()
static <T> EntityResponse.Builder<T> fromObject(T t)
T - the type of element contained in the publishert - the object that represents the body of the responsestatic <T> EntityResponse.Builder<T> fromObject(T t, ParameterizedTypeReference<T> entityType)
T - the type of element contained in the publishert - the object that represents the body of the responseentityType - the type of the entity, used to capture the generic type