interface EntityResponse<T : Any> : ServerResponse
Entity-specific subtype of ServerResponse that exposes entity data.
Author
Arjen Poutsma
Since
5.0
abstract fun entity(): T
Return the entity that makes up this response. |
|
open static fun <T : Any> fromObject(t: T): Builder
Create a builder with the given object. |
|
open static fun <T : Any, P : Publisher<T>> fromPublisher(publisher: P, elementClass: Class<T>): Builderopen static fun <T : Any, P : Publisher<T>> fromPublisher(publisher: P, typeReference: ParameterizedTypeReference<T>): Builder
Create a builder with the given publisher. |
|
abstract fun inserter(): BodyInserter<T, in ServerHttpResponse>
Return the |