Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.javaswift.joss.client.factory;
  
  
  public class AccountFactory {
 
     private final AccountConfig config;
 
     private HttpClient httpClient;
 
     public AccountFactory() {
         this(new AccountConfig());
     }
 
     public AccountFactory(AccountConfig config) {
         this. = config;
     }
 
     public Account createAccount() {
         final Client client;
         if (.isMock()) {
             client = createClientMock();
         } else {
             client = createClientImpl();
         }
         return client.authenticate();
     }
 
     public Client createClientMock() {
         return new ClientMock();
     }
 
     public Client createClientImpl() {
         return new ClientImpl()
                 .setHttpClient(this.);
     }
 
     public AccountFactory setTenantName(String tenantName) {
         this..setTenantName(tenantName);
         return this;
     }
 
     public AccountFactory setTenantId(String tenantId) {
         this..setTenantId(tenantId);
         return this;
     }
 
     public AccountFactory setUsername(String username) {
         this..setUsername(username);
         return this;
     }
 
     public AccountFactory setPassword(String password) {
         this..setPassword(password);
         return this;
     }
 
     public AccountFactory setAuthUrl(String authUrl) {
         this..setAuthUrl(authUrl);
         return this;
     }
 
     public AccountFactory setMock(boolean mock) {
         this..setMock(mock);
         return this;
     }
 
     public AccountFactory setPublicHost(String publicHost) {
         this..setPublicHost(publicHost);
         return this;
     }
 
     public AccountFactory setPrivateHost(String privateHost) {
         this..setPrivateHost(privateHost);
         return this;
     }
 
     public AccountFactory setMockMillisDelay(int mockMillisDelay) {
         this..setMockMillisDelay(mockMillisDelay);
         return this;
     }
 
     public AccountFactory setAllowReauthenticate(boolean allowReauthenticate) {
         this..setAllowReauthenticate(allowReauthenticate);
         return this;
     }
 
     public AccountFactory setAllowCaching(boolean allowCaching) {
         this..setAllowCaching(allowCaching);
         return this;
     }
 
     public AccountFactory setAllowContainerCaching(boolean allowContainerCaching) {
         this..setAllowContainerCaching(allowContainerCaching);
         return this;
    }
    public AccountFactory setMockAllowObjectDeleter(boolean mockAllowObjectDeleter) {
        this..setMockAllowObjectDeleter(mockAllowObjectDeleter);
        return this;
    }
    public AccountFactory setMockAllowEveryone(boolean mockAllowEveryone) {
        this..setMockAllowEveryone(mockAllowEveryone);
        return this;
    }
    public AccountFactory setMockOnFileObjectStore(String mockOnFileObjectStore) {
        this..setMockOnFileObjectStore(mockOnFileObjectStore);
        return this;
    }
    public AccountFactory setMockOnFileObjectStoreIsAbsolutePath(boolean absolutePath) {
        this..setMockOnFileObjectStoreIsAbsolutePath(absolutePath);
        return this;
    }
    public AccountFactory setSocketTimeout(int socketTimeout) {
        this..setSocketTimeout(socketTimeout);
        return this;
    }
    public AccountFactory setPreferredRegion(String preferredRegion) {
        this..setPreferredRegion(preferredRegion);
        return this;
    }
    public AccountFactory setHashPassword(String hashPassword) {
        this..setHashPassword(hashPassword);
        return this;
    }
        this..setTempUrlHashPrefixSource(source);
        return this;
    }
    public AccountFactory setAuthenticationMethod(AuthenticationMethod authenticationMethod) {
        this..setAuthenticationMethod(authenticationMethod);
        return this;
    }
    public AccountFactory setDelimiter(Character delimiter) {
        this..setDelimiter(delimiter);
        return this;
    }
    public AccountFactory setHttpClient(HttpClient httpClient) {
        this. = httpClient;
        return this;
    }
New to GrepCode? Check out our FAQ X