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 element contained in the entity T> EntityResponse. | Returns: the created builderthe object that represents the body of the response t)Create a builder with the given object. |
| public static < the type of element contained in the entity T> EntityResponse. | Returns: the created builderthe object that represents the body of the response t, ParameterizedTypeReference<T> the type of the entity, used to capture the generic type entityType)Create a builder with the given object and type reference. |
| 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.
| |
| fromObject | back to summary |
|---|---|
| public static <T> EntityResponse. Create a builder with the given object and type reference.
| |
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 EntityResponse | |
| 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. | |
| 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 buildera function that consumes the headersConsumer)HttpHeadersManipulate this response's headers with the given consumer. |
| 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 EntityResponse 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. Manipulate this response'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
| |
| 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.
| |