Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jclouds.openstack.swift.v1.features;
import static javax.ws.rs.core.MediaType.APPLICATION_JSON;
Provides access to the OpenStack Object Storage (Swift) Static Large Object API features.

This API is new to jclouds and hence is in Beta. That means we need people to use it and give us feedback. Based on that feedback, minor changes to the interfaces may happen. This code will replace org.jclouds.openstack.swift.SwiftClient in jclouds 2.0 and it is recommended you adopt it sooner than later.

public interface StaticLargeObjectApi {

   
Creates or updates a static large object's manifest.

Parameters:
objectName corresponds to SwiftObject#getName().
segments ordered parts which will be concatenated upon download.
metadata corresponds to SwiftObject#getMetadata().
Returns:
SwiftObject#getEtag() of the object, which is the MD5 checksum of the concatenated ETag values of the segments.
   @Named("staticLargeObject:replaceManifest")
   @PUT
   @Path("/{objectName}")
   @QueryParams(keys = "multipart-manifest", values = "put")
   String replaceManifest(@PathParam("objectName"String objectName,
         @BinderParam(BindToJsonPayload.classList<Segmentsegments,
         @BinderParam(BindObjectMetadataToHeaders.classMap<StringStringmetadata);

   
Deletes a static large object, if present, including all of its segments.

Parameters:
objectName corresponds to SwiftObject#getName().
   @Named("staticLargeObject:delete")
   @DELETE
   @Path("/{objectName}")
   @QueryParams(keys = "multipart-manifest", values = "delete")
   void delete(@PathParam("objectName"String objectName);
New to GrepCode? Check out our FAQ X