@Override public String marshal(Date arg0) throws Exception { return new RFC1123DateConverter().format(arg0); } }
@Override public String marshal(Date arg0) throws Exception { return new RFC1123DateConverter().format(arg0); } }
/** * Creates an access condition that only allows an operation if the resource * has not been modified since the specified time. * <p> * Setting this access condition modifies the request to include the HTTP * <i>If-Unmodified-Since</i> conditional header. If this access condition * is set, the operation is performed only if the resource has not been * modified since the specified time. * <p> * For more information, see <a href= * 'http://go.microsoft.com/fwlink/?LinkID=224642&clcid=0x409'>Specifying * Conditional Headers for Blob Service Operations</a>. * * @param lastMotified * A <code>java.util.Date</code> object that represents the * last-modified time to check for the resource. * * @return An <code>AccessCondition</code> object that represents the * <i>If-Unmodified-Since</i> condition. */ public static AccessConditionHeader ifNotModifiedSince(Date lastMotified) { return new AccessConditionHeader( AccessConditionHeaderType.IF_UNMODIFIED_SINCE, new RFC1123DateConverter().format(lastMotified)); }
/** * Creates an access condition that only allows an operation if the resource * has been modified since the specified time. * <p> * Setting this access condition modifies the request to include the HTTP * <i>If-Modified-Since</i> conditional header. If this access condition is * set, the operation is performed only if the resource has been modified * since the specified time. * <p> * For more information, see <a href= * 'http://go.microsoft.com/fwlink/?LinkID=224642&clcid=0x409'>Specifying * Conditional Headers for Blob Service Operations</a>. * * @param lastMotified * A <code>java.util.Date</code> object that represents the * last-modified time to check for the resource. * * @return An <code>AccessCondition</code> object that represents the * <i>If-Modified-Since</i> condition. */ public static AccessConditionHeader ifModifiedSince(Date lastMotified) { return new AccessConditionHeader( AccessConditionHeaderType.IF_MODIFIED_SINCE, new RFC1123DateConverter().format(lastMotified)); }
/** * Creates an access condition that only allows an operation if the resource * has not been modified since the specified time. * <p> * Setting this access condition modifies the request to include the HTTP * <i>If-Unmodified-Since</i> conditional header. If this access condition * is set, the operation is performed only if the resource has not been * modified since the specified time. * <p> * For more information, see <a href= * 'http://go.microsoft.com/fwlink/?LinkID=224642&clcid=0x409'>Specifying * Conditional Headers for Blob Service Operations</a>. * * @param lastMotified * A <code>java.util.Date</code> object that represents the * last-modified time to check for the resource. * * @return An <code>AccessCondition</code> object that represents the * <i>If-Unmodified-Since</i> condition. */ public static AccessConditionHeader ifNotModifiedSince(Date lastMotified) { return new AccessConditionHeader( AccessConditionHeaderType.IF_UNMODIFIED_SINCE, new RFC1123DateConverter().format(lastMotified)); }
/** * Creates an access condition that only allows an operation if the resource * has been modified since the specified time. * <p> * Setting this access condition modifies the request to include the HTTP * <i>If-Modified-Since</i> conditional header. If this access condition is * set, the operation is performed only if the resource has been modified * since the specified time. * <p> * For more information, see <a href= * 'http://go.microsoft.com/fwlink/?LinkID=224642&clcid=0x409'>Specifying * Conditional Headers for Blob Service Operations</a>. * * @param lastMotified * A <code>java.util.Date</code> object that represents the * last-modified time to check for the resource. * * @return An <code>AccessCondition</code> object that represents the * <i>If-Modified-Since</i> condition. */ public static AccessConditionHeader ifModifiedSince(Date lastMotified) { return new AccessConditionHeader( AccessConditionHeaderType.IF_MODIFIED_SINCE, new RFC1123DateConverter().format(lastMotified)); }