> + * Unprefixed/unescaped metadata, such as Content-Disposition
> + *
> + * @return {@code true} if the object was successfully copied, {@code
> false} if not.
> + *
> + * @throws org.jclouds.openstack.swift.v1.CopyObjectException if the
> source or destination container do not exist.
> + */
> + @Named("object:copy")
> + @PUT
> + @Path("/{destinationObject}")
> + @Headers(keys = OBJECT_COPY_FROM, values =
> "/{sourceContainer}/{sourceObject}")
> + @Fallback(FalseOnContainerNotFound.class)
> + boolean copy(@PathParam("destinationObject") String destinationObject,
> + @PathParam("sourceContainer") String sourceContainer,
> + @PathParam("sourceObject") String sourceObject,
> + @BinderParam(BindObjectMetadataToHeaders.class) Map<String, String>
> userMetadata,
> + @BinderParam(BindHeaderMetadataToHeaders.class) Map<String, String>
> objectMetadata);
Should we reverse these parameters? Also does this allow an easy way to copy
the metadata from an existing object? I would like to make the simple case of
copying all objects from one container to another as easy as possible.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/718/files#r27531014