public class EntityTagVersion implements Version
This version checks etag value and pass it through conditions supplied by the remote client. Depending on conditions it
produces return value of enum type enum VersionCheckResult
It never handles If-None-Match: * as it is related to non-etag logic (for example, Last modified checks). See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26 for more details
enum VersionCheckResult
Constructor and Description |
---|
EntityTagVersion(java.lang.String etag)
This version checks etag value and pass it through conditions supplied by the remote client. Depending on conditions it
produces return value of enum type
enum VersionCheckResult |
Modifier and Type | Method and Description |
---|---|
void |
appendHeadersTo(HeadersBuilder builder)
Appends relevant headers to the builder
|
VersionCheckResult |
check(Headers requestHeaders)
Checks requestHeaders against this version and returns
enum VersionCheckResult |
java.lang.String |
component1()
entity tag, for example file's content hash
|
EntityTagVersion |
copy(java.lang.String etag)
This version checks etag value and pass it through conditions supplied by the remote client. Depending on conditions it
produces return value of enum type
enum VersionCheckResult |
boolean |
equals(java.lang.Object p) |
java.lang.String |
getEtag()
entity tag, for example file's content hash
|
int |
hashCode() |
java.lang.String |
toString() |
appendHeadersTo, check
public EntityTagVersion(java.lang.String etag)
This version checks etag value and pass it through conditions supplied by the remote client. Depending on conditions it
produces return value of enum type enum VersionCheckResult
It never handles If-None-Match: * as it is related to non-etag logic (for example, Last modified checks). See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26 for more details
etag
- entity tag, for example file's content hash
etag
- entity tag, for example file's content hash
enum VersionCheckResult
public VersionCheckResult check(Headers requestHeaders)
Checks requestHeaders against this version and returns enum VersionCheckResult
enum VersionCheckResult
public void appendHeadersTo(HeadersBuilder builder)
Appends relevant headers to the builder
public java.lang.String getEtag()
entity tag, for example file's content hash
public java.lang.String component1()
entity tag, for example file's content hash
public EntityTagVersion copy(java.lang.String etag)
This version checks etag value and pass it through conditions supplied by the remote client. Depending on conditions it
produces return value of enum type enum VersionCheckResult
It never handles If-None-Match: * as it is related to non-etag logic (for example, Last modified checks). See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.26 for more details
etag
- entity tag, for example file's content hash
enum VersionCheckResult
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)