ServerResponse that exposes entity data.
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public T | |
| public static < the type of the body T> EntityResponse. | Returns: the created builderthe object that represents the body of the response body)Create a builder with the given object. |
| public static <T> EntityResponse. | Returns: the created builderthe producer that represents the body of the response producer, Class<?> the class of elements contained in the publisher elementClass)Create a builder with the given producer. |
| public static <T> EntityResponse. | Returns: the created builderthe producer that represents the body of the response producer, ParameterizedTypeReference<?> the type of elements contained in the producer typeReference)Create a builder with the given producer. |
| public static < the type of the elements contained in the publisher T, the type of the P extends PublisherPublisher | Returns: the created builderthe publisher that represents the body of the response publisher, Class<T> the class of elements contained in the publisher elementClass)Create a builder with the given publisher. |
| public static < the type of the elements contained in the publisher T, the type of the P extends PublisherPublisher | Returns: the created builderthe publisher that represents the body of the response publisher, ParameterizedTypeReference<T> the type of elements contained in the publisher typeReference)Create a builder with the given publisher. |
| public BodyInserter |
| entity | back to summary |
|---|---|
| public T entity() Return the entity that makes up this response. | |
| fromObject | back to summary |
|---|---|
| public static <T> EntityResponse. Create a builder with the given object.
| |
| fromProducer | back to summary |
|---|---|
| public static <T> EntityResponse. Create a builder with the given producer.
| |
| fromProducer | back to summary |
|---|---|
| public static <T> EntityResponse. Create a builder with the given producer.
| |
| fromPublisher | back to summary |
|---|---|
| public static <T, P extends Publisher Create a builder with the given publisher.
| |
| fromPublisher | back to summary |
|---|---|
| public static <T, P extends Publisher Create a builder with the given publisher.
| |
| inserter | back to summary |
|---|---|
| public BodyInserter Return the | |
EntityResponse.
| Modifier and Type | Method and Description |
|---|---|
| public EntityResponse. | Returns: this builderthe allowed methods allowedMethods)Set the set of allowed |
| public EntityResponse. | Returns: this builderthe allowed methods allowedMethods)Set the set of allowed |
| public Mono | |
| public EntityResponse. | Returns: this buildera builder for cache-related HTTP response headers cacheControl)Set the caching directives for the resource, as specified by the HTTP 1.1
|
| public EntityResponse. | Returns: this builderthe content length contentLength)Set the length of the body in bytes, as specified by the
|
| public EntityResponse. | Returns: this builderthe content type contentType)Set the media type of the body, as specified by the
|
| public EntityResponse. | Returns: this builderthe cookie to add cookie)Add the given cookie to the response. |
| public EntityResponse. | Returns: this buildera function that consumes the cookies cookiesConsumer)Manipulate this response's cookies with the given consumer. |
| public EntityResponse. | |
| public EntityResponse. | |
| public EntityResponse. | Returns: this builderthe existing HttpHeaders to copy from headers)Copy the given headers into the entity's headers map. |
| public EntityResponse. | Returns: this buildera function that consumes the headersConsumer)HttpHeadersManipulate this entity's headers with the given consumer. |
| public EntityResponse. | hint(String
the hint key key, Object the hint value value)Add a serialization hint like |
| public EntityResponse. | |
| public EntityResponse. | Returns: this builderthe last modified date lastModified)Set the time the resource was last changed, as specified by the
|
| public EntityResponse. | Returns: this builderthe last modified date lastModified)Set the time the resource was last changed, as specified by the
|
| public EntityResponse. | |
| public EntityResponse. | |
| public EntityResponse. | |
| public EntityResponse. | Returns: this builderrequest header names requestHeaders)Configure one or more request header names (e.g. "Accept-Language") to add to the "Vary" response header to inform clients that the response is subject to content negotiation and variances based on the value of the given request headers. |
| allow | back to summary |
|---|---|
| public EntityResponse. Set the set of allowed
| |
| allow | back to summary |
|---|---|
| public EntityResponse. Set the set of allowed
| |
| build | back to summary |
|---|---|
| public Mono Build the response.
| |
| cacheControl | back to summary |
|---|---|
| public EntityResponse. Set the caching directives for the resource, as specified by the HTTP 1.1
A
| |
| contentLength | back to summary |
|---|---|
| public EntityResponse. Set the length of the body in bytes, as specified by the
| |
| contentType | back to summary |
|---|---|
| public EntityResponse. Set the media type of the body, as specified by the
| |
| cookie | back to summary |
|---|---|
| public EntityResponse. Add the given cookie to the response.
| |
| cookies | back to summary |
|---|---|
| public EntityResponse. Manipulate this response's cookies with the given consumer. The
cookies provided to the consumer are "live", so that the consumer can be used to
overwrite existing cookies,
remove cookies, or use any of the other
| |
| eTag | back to summary |
|---|---|
| public EntityResponse. Set the entity tag of the body, as specified by the
| |
| header | back to summary |
|---|---|
| public EntityResponse. Add the given header value(s) under the given name.
| |
| headers | back to summary |
|---|---|
| public EntityResponse. Copy the given headers into the entity's headers map.
| |
| headers | back to summary |
|---|---|
| public EntityResponse. Manipulate this entity's headers with the given consumer. The
headers provided to the consumer are "live", so that the consumer can be used to
overwrite existing header values,
remove values, or use any of the other
| |
| hint | back to summary |
|---|---|
| public EntityResponse. Add a serialization hint like | |
| hints | back to summary |
|---|---|
| public EntityResponse. Customize the serialization hints with the given consumer. | |
| lastModified | back to summary |
|---|---|
| public EntityResponse. Set the time the resource was last changed, as specified by the
The date should be specified as the number of milliseconds since January 1, 1970 GMT.
| |
| lastModified | back to summary |
|---|---|
| public EntityResponse. Set the time the resource was last changed, as specified by the
The date should be specified as the number of milliseconds since January 1, 1970 GMT.
| |
| location | back to summary |
|---|---|
| public EntityResponse. Set the location of a resource, as specified by the
| |
| status | back to summary |
|---|---|
| public EntityResponse. Set the HTTP status.
| |
| status | back to summary |
|---|---|
| public EntityResponse. Set the HTTP status.
| |
| varyBy | back to summary |
|---|---|
| public EntityResponse. Configure one or more request header names (e.g. "Accept-Language") to add to the "Vary" response header to inform clients that the response is subject to content negotiation and variances based on the value of the given request headers. The configured request header names are added only if not already present in the response "Vary" header.
| |