Examples of UpdateContainerOptions


Examples of org.jclouds.openstack.swift.v1.options.UpdateContainerOptions

   public void testUpdate() throws Exception {
      for (String regionId : regions) {
         ImmutableMultimap<String, String> headers =
               ImmutableMultimap.of(SwiftHeaders.STATIC_WEB_INDEX, "__index.html",
                                    SwiftHeaders.STATIC_WEB_ERROR, "__error.html");
         UpdateContainerOptions opts = new UpdateContainerOptions().headers(headers);

         assertNotNull(api.getContainerApiForRegion(regionId).create(name));

         Container container = api.getContainerApiForRegion(regionId).get(name);
         assertNotNull(container);
View Full Code Here

Examples of org.jclouds.openstack.swift.v1.options.UpdateContainerOptions

      System.out.format("Enable CDN%n");
      Multimap<String, String> enableStaticWebHeaders =
            ImmutableMultimap.of(STATIC_WEB_INDEX, "index.html",
                                 STATIC_WEB_ERROR, "error.html");

      UpdateContainerOptions opts = new UpdateContainerOptions().headers(enableStaticWebHeaders);
      cloudFiles.getContainerApiForRegion(REGION).update(container, opts);

      // enable the CDN container
      URI cdnURI = cloudFiles.getCDNApiForRegion(REGION).enable(container);
      System.out.format("  Go to %s/%n", cdnURI);
View Full Code Here

Examples of org.jclouds.openstack.swift.v1.options.UpdateContainerOptions

   public void testUpdate() throws Exception {
      for (String regionId : regions) {
         ImmutableMultimap<String, String> headers =
               ImmutableMultimap.of(SwiftHeaders.STATIC_WEB_INDEX, "__index.html",
                                    SwiftHeaders.STATIC_WEB_ERROR, "__error.html");
         UpdateContainerOptions opts = new UpdateContainerOptions().headers(headers);

         assertNotNull(api.getContainerApi(regionId).create(name));

         Container container = api.getContainerApi(regionId).get(name);
         assertNotNull(container);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.