org.javaswift.joss.headers.Metadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joss Show documentation
Show all versions of joss Show documentation
Java Client library for OpenStack Storage (Swift)
package org.javaswift.joss.headers;
import org.apache.commons.lang.WordUtils;
public abstract class Metadata extends SimpleHeader {
private String name;
public Metadata(String name, String value) {
super(value);
this.name = capitalize(name);
}
public String getName() {
return this.name;
}
public static String capitalize(String key) {
key = key.replaceAll("_", "-");
return WordUtils.capitalize(key, new char[]{'-'});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy