Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds 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 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;
 import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.CREDENTIAL_TYPE;
 import static org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties.SERVICE_TYPE;
Implementation of org.jclouds.apis.ApiMetadata for Swift 1.0 API

Adrian Cole
 public class SwiftApiMetadata extends BaseRestApiMetadata {
The serialVersionUID
    private static final long serialVersionUID = 6725672099385580694L;
       private static final long serialVersionUID = -5070937833892503232L;
    public Builder toBuilder() {
       return new Builder().fromApiMetadata(this);
    public SwiftApiMetadata() {
       this(new Builder());
    protected SwiftApiMetadata(Builder builder) {
    public static Properties defaultProperties() {
       Properties properties = BaseRestApiMetadata.defaultProperties();
       return properties;
    public static class Builder extends BaseRestApiMetadata.Builder {
       protected Builder() {
          .name("OpenStack Swift Diablo+ API")
          .identityName("${tenantName}:${userName} or ${userName}, if your keystone supports a default tenant")
          .endpointName("KeyStone base url ending in /v2.0/")
          .defaultModules(ImmutableSet.<Class<? extends Module>>builder()
       public SwiftApiMetadata build() {
          return new SwiftApiMetadata(this);
       public Builder fromApiMetadata(ApiMetadata in) {
         return this;
New to GrepCode? Check out our FAQ X