Package io.fathom.cloud.protobuf.CloudCommons

Examples of io.fathom.cloud.protobuf.CloudCommons.Attributes


    }

    private Optional<String> findMeta(String key) {
        key = key.toLowerCase();

        Attributes attributes = data.getAttributes();
        for (KeyValueData kv : attributes.getUserAttributesList()) {
            if (key.equals(kv.getKey())) {
                return Optional.of(kv.getValue());
            }
        }
        return Optional.absent();
View Full Code Here


    private final List<DnsRecordsetSpec> records = Lists.newArrayList();
    private final List<LbaasMapping> loadBalancerRecords = Lists.newArrayList();

    void build(Project project, BucketData bucket) {
        Attributes metadata = bucket.getAttributes();

        for (KeyValueData entry : metadata.getUserAttributesList()) {
            String key = entry.getKey();
            String value = entry.getValue();

            if (key.equals(KEY_HTTP_HOST)) {
                addHttpHost(project, bucket, value);
View Full Code Here

        // X-Container-Meta-Web-Index
        // X-Container-Meta-Web-Listings
        // X-Container-Meta-Web-Listings-CSS
        // X-Container-Meta-InspectedBy: JackWolf
        if (found.hasAttributes()) {
            Attributes attributes = found.getAttributes();
            for (KeyValueData entry : attributes.getUserAttributesList()) {
                response.header(CONTAINER_META_PREFIX + entry.getKey(), entry.getValue());
            }
        }
        // TODO: How should we set the length... Maybe only on a head?
        // if (found.hasLength()) {
View Full Code Here

        if (data.hasContentType()) {
            response.header(HttpHeaders.CONTENT_TYPE, data.getContentType());
        }

        if (data.hasAttributes()) {
            Attributes attributes = data.getAttributes();
            for (KeyValueData entry : attributes.getUserAttributesList()) {
                response.header(OBJECT_META_PREFIX + entry.getKey(), entry.getValue());
            }
        }
    }
View Full Code Here

TOP

Related Classes of io.fathom.cloud.protobuf.CloudCommons.Attributes

Copyright © 2018 www.massapicom. 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.