Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.command.impl.account;
 
    public AccountInformationCommandImpl(Account accountHttpClient httpClientAccess access) {
        super(accounthttpClientaccess);
    }
    @Override
    protected AccountInformation getReturnObject(HttpResponse responsethrows IOException {
        AccountInformation info = new AccountInformation();
        info.setMetadata(AccountMetadata.fromResponse(response));
        info.setContainerCount(AccountContainerCount.fromResponse(response));
        info.setObjectCount(AccountObjectCount.fromResponse(response));
        info.setBytesUsed(AccountBytesUsed.fromResponse(response));
        info.setServerDate(ServerDate.fromResponse(response));
        return info;
    }
    @Override
    protected HttpHead createRequest(String url) {
        return new HttpHead(url);
    }
    @Override
    public HttpStatusChecker[] getStatusCheckers() {
        return new HttpStatusChecker[] {
            new HttpStatusSuccessCondition(new HttpStatusRange(200, 299))
        };
    }
New to GrepCode? Check out our FAQ X