public class DownloadInstructions
extends java.lang.Object
AbstractRange| Constructor and Description |
|---|
DownloadInstructions() |
| Modifier and Type | Method and Description |
|---|---|
DownloadInstructions |
addHeader(Header header) |
java.util.Map<java.lang.String,Header> |
getHeaders() |
AbstractIfMatch |
getMatchConditional() |
AbstractRange |
getRange() |
AbstractIfSince |
getSinceConditional() |
DownloadInstructions |
setMatchConditional(AbstractIfMatch ifMatch)
Return the content under a specific condition, which can be either:
If-Match; if the etag matches
the supplied value, return the content. |
DownloadInstructions |
setRange(AbstractRange range)
Return the part of the content designated by the
AbstractRange class. |
DownloadInstructions |
setSinceConditional(AbstractIfSince ifSince)
Return the content under a specific condition, which can be either:
If-Unmodified-Since; if the
content has been unmodified since the date, return the content. |
public DownloadInstructions setRange(AbstractRange range)
AbstractRange class.range - the range of the content to downloadpublic AbstractRange getRange()
public DownloadInstructions setMatchConditional(AbstractIfMatch ifMatch)
If-Match; if the etag matches
the supplied value, return the content. If not, throw a CommandException
with status "412 Precondition Failed"If-None-Match; if the etag
does NOT match, return the content. If it matches, throw a CommandException
with status "304 Not Modified"ifMatch - value to match against the etag valuepublic AbstractIfMatch getMatchConditional()
public DownloadInstructions setSinceConditional(AbstractIfSince ifSince)
If-Unmodified-Since; if the
content has been unmodified since the date, return the content. If not, throw a
CommandException with status "412 Precondition Failed"If-Modified-Since; if the
content has been modified since the date, return the content. If not, throw a
CommandException with status "304 Not Modified"ifSince - date to match the last modification datepublic AbstractIfSince getSinceConditional()
public DownloadInstructions addHeader(Header header)
public java.util.Map<java.lang.String,Header> getHeaders()
Copyright © 2012-2020 42 BV. All Rights Reserved.