@Beta
@Consumes(value="application/json")
@Path(value="/{objectName}")
public interface StaticLargeObjectApi
Modifier and Type | Method and Description |
---|---|
DeleteStaticLargeObjectResponse |
delete(String objectName)
Deletes a static large object, if present, including all of its segments.
|
List<Segment> |
getManifest(String objectName)
Get a static large object's manifest.
|
String |
replaceManifest(String objectName,
List<Segment> segments,
Map<String,String> metadata)
Creates or updates a static large object's manifest.
|
String |
replaceManifest(String objectName,
List<Segment> segments,
Map<String,String> metadata,
Map<String,String> headers)
Creates or updates a static large object's manifest.
|
@Named(value="staticLargeObject:replaceManifest") @PUT String replaceManifest(@PathParam(value="objectName") String objectName, List<Segment> segments, Map<String,String> metadata)
objectName
- corresponds to SwiftObject.getName()
.segments
- ordered parts which will be concatenated upon download.metadata
- corresponds to SwiftObject.getMetadata()
.SwiftObject.getEtag()
of the object, which is the MD5
checksum of the concatenated ETag values of the segments
.@Named(value="staticLargeObject:replaceManifest") @PUT String replaceManifest(@PathParam(value="objectName") String objectName, List<Segment> segments, Map<String,String> metadata, Map<String,String> headers)
objectName
- corresponds to SwiftObject.getName()
.segments
- ordered parts which will be concatenated upon download.metadata
- corresponds to SwiftObject.getMetadata()
.headers
- Binds the map to headers, without prefixing/escaping the header name/key.SwiftObject.getEtag()
of the object, which is the MD5
checksum of the concatenated ETag values of the segments
.@Named(value="staticLargeObject:delete") @DELETE DeleteStaticLargeObjectResponse delete(@PathParam(value="objectName") String objectName)
objectName
- corresponds to SwiftObject.getName()
.@Named(value="staticLargeObject:getManifest") @GET List<Segment> getManifest(@PathParam(value="objectName") String objectName)
objectName
- corresponds to SwiftObject.getName()
.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.