[ 
https://issues.apache.org/jira/browse/JCLOUDS-630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064327#comment-14064327
 ] 

Jeremy Daggett commented on JCLOUDS-630:
----------------------------------------

Is there any way to have you post a code example as a pastie or gist? We don't 
set the "Expires" header on the Payload, however we do set "X-Delete-At" Swift 
specific header which has the same effect.

All that is necessary is setting the expiration on the the Payload:
{code}
Payload payload = Payloads.newByteSourcePayload(ByteSource.empty());
payload.getContentMetadata().setExpires(new Date());
{code}



> ObjectAPI
> ---------
>
>                 Key: JCLOUDS-630
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-630
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-labs-openstack
>    Affects Versions: 1.7.3
>         Environment: Windows 7
>            Reporter: Chris Graybeal
>            Assignee: Jeremy Daggett
>
> The payload content metadata, specifically "expires", does not seem to be 
> passed along to the swift object created when ObjectAPI runs put(....)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to