Package ch.iterate.openstack.swift.model

Examples of ch.iterate.openstack.swift.model.AccountInfo


public class AccountInfoHandler implements ResponseHandler<AccountInfo> {

    public AccountInfo handleResponse(final HttpResponse response) throws ClientProtocolException, IOException {
        if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT ||
                response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
            return new AccountInfo(this.getAccountBytesUsed(response),
                    this.getAccountContainerCount(response),
                    this.getAccountTempUrlKey(response));
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
            throw new AuthorizationException(new Response(response));
View Full Code Here


public class AccountInfoHandler implements ResponseHandler<AccountInfo> {

    public AccountInfo handleResponse(final HttpResponse response) throws ClientProtocolException, IOException {
        if(response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT) {
            return new AccountInfo(this.getAccountBytesUsed(response), this.getAccountContainerCount(response));
        }
        else if(response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
            throw new AuthorizationException(new Response(response));
        }
        else {
View Full Code Here

TOP

Related Classes of ch.iterate.openstack.swift.model.AccountInfo

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.