public interface ETagResponseBuilder extends ResponseBuilder
| Modifier and Type | Method and Description |
|---|---|
ETagResponseBuilder |
eTag()
Set a weak validating
ETag using a hash of the
embedded entity.
|
ETagResponseBuilder |
eTag(ETag version)
Set the ETag header
|
ETagResponseBuilder |
lastModified(HttpDate lastModified)
Set the Last-Modified header
to the specified
Date |
body, body, build, checkPrecondition, embed, embed, entityFactory, forEach, link, property, property, request, requirePrecondition, send, statusETagResponseBuilder eTag(ETag version)
version - ETagETagResponseBuilderETagResponseBuilder eTag()
HashStrategy
specified for this ResponseBuilder
on the string returned from the Entity
toString() method.
Note: If the Entity state is
modified after the ETag is created
it will not be validETagResponseBuilderETagResponseBuilder lastModified(HttpDate lastModified)
DatelastModified - Date this entity last changedETagResponseBuilder