public class IfCondition extends Object implements HeaderOption
| Modifier and Type | Class and Description |
|---|---|
static class |
IfCondition.IfMatch |
static class |
IfCondition.IfModifiedSince |
static class |
IfCondition.IfNoneMatch |
static class |
IfCondition.IfUnModifiedSince |
| Modifier | Constructor and Description |
|---|---|
protected |
IfCondition(String name) |
protected |
IfCondition(String name,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
static IfCondition.IfMatch |
match(String matchValue)
Compares the ETag as a condition to determine if the remote data matches the checksum
|
static IfCondition.IfModifiedSince |
modifiedSince(Date date)
Determines if the remote data has been modified since the specified date
|
static IfCondition.IfModifiedSince |
modifiedSince(long milliseconds)
Determines if the remote data has been modified since the specified date
|
static IfCondition.IfNoneMatch |
noneMatch(String matchCondition)
Compares the ETag as a condition to determine if the remote data does not match the checksum
|
HeaderNameValue |
toHeader()
Transform the option into a Header
|
static IfCondition.IfUnModifiedSince |
unModifiedSince(Date date)
Determines if the remote data has been un-modified since the specified date
|
static IfCondition.IfUnModifiedSince |
unModifiedSince(long milliseconds)
Determines if the remote data has been un-modified since the specified date
|
protected IfCondition(String name)
public static IfCondition.IfModifiedSince modifiedSince(long milliseconds)
milliseconds - the date in millisecondspublic static IfCondition.IfUnModifiedSince unModifiedSince(long milliseconds)
milliseconds - the date in millisecondspublic static IfCondition.IfUnModifiedSince unModifiedSince(Date date)
date - the date since un-modifiedpublic static IfCondition.IfModifiedSince modifiedSince(Date date)
date - the date conditionpublic static IfCondition.IfNoneMatch noneMatch(String matchCondition)
matchCondition - the match condition (ETag)http://www.ietf.org/rfc/rfc2616.txtpublic static IfCondition.IfMatch match(String matchValue)
matchValue - the match value (ETag)http://www.ietf.org/rfc/rfc2616.txtpublic HeaderNameValue toHeader()
HeaderOptiontoHeader in interface HeaderOptionCopyright © 2017. All rights reserved.