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