
nl.tweeenveertig.openstack.headers.container.ContainerObjectCount 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 nl.tweeenveertig.openstack.headers.container;
import nl.tweeenveertig.openstack.headers.SimpleHeader;
import org.apache.http.HttpResponse;
public class ContainerObjectCount extends SimpleHeader {
public static final String X_CONTAINER_OBJECT_COUNT = "X-Container-Object-Count";
public ContainerObjectCount(String value) {
super(value);
}
@Override
public String getHeaderName() {
return X_CONTAINER_OBJECT_COUNT;
}
public static ContainerObjectCount fromResponse(HttpResponse response) {
return new ContainerObjectCount(convertResponseHeader(response, X_CONTAINER_OBJECT_COUNT));
}
}