Package com.emc.atmos.api.bean

Examples of com.emc.atmos.api.bean.Metadata


        String[] pairs = headerValue.split( ",(?=[^,]+=)" ); // comma with key as look-ahead (not part of match)
        for ( String pair : pairs ) {
            String[] components = pair.split( "=", 2 );
            String name = HttpUtil.decodeUtf8( components[0].trim() );
            String value = components.length > 1 ? HttpUtil.decodeUtf8( components[1] ) : null;
            Metadata metadata = new Metadata( name, value, listable );
            metadataMap.put( name, metadata );
        }
        return metadataMap;
    }
View Full Code Here


            String[] pairs = headerValue.split( ",(?=[^,]+=)" ); // comma with key as look-ahead (not part of match)
            for ( String pair : pairs ) {
                String[] components = pair.split( "=", 2 );
                String name = URLDecoder.decode( components[0].trim(), "UTF-8" );
                String value = components.length > 1 ? URLDecoder.decode( components[1], "UTF-8" ) : null;
                Metadata metadata = new Metadata( name, value, listable );
                metadataMap.put( name, metadata );
            }
            return metadataMap;
        } catch ( UnsupportedEncodingException e ) {
            throw new RuntimeException( "UTF-8 encoding isn't supported on this system", e );
View Full Code Here

            updatedMetadata.put(m.getName(), m);
        }
       
        // Apply updates and adds
        for(String key : meta.keySet()) {
            Metadata m = updatedMetadata.get(key);
            updatedMetadata.put(key, new Metadata(key, meta.get(key),
                    m == null?false:m.isListable()));
        }
       
        return updatedMetadata.values();
    }
View Full Code Here

            String[] pairs = headerValue.split( ",(?=[^,]+=)" ); // comma with key as look-ahead (not part of match)
            for ( String pair : pairs ) {
                String[] components = pair.split( "=", 2 );
                String name = URLDecoder.decode( components[0].trim(), "UTF-8" );
                String value = components.length > 1 ? URLDecoder.decode( components[1], "UTF-8" ) : null;
                Metadata metadata = new Metadata( name, value, listable );
                metadataMap.put( name, metadata );
            }
            return metadataMap;
        } catch ( UnsupportedEncodingException e ) {
            throw new RuntimeException( "UTF-8 encoding isn't supported on this system", e );
View Full Code Here

TOP

Related Classes of com.emc.atmos.api.bean.Metadata

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.