org.javaswift.joss.client.core
Class AbstractClient<A extends Account>

java.lang.Object
  extended by org.javaswift.joss.client.core.AbstractClient<A>
All Implemented Interfaces:
Client<A>
Direct Known Subclasses:
ClientImpl, ClientMock

public abstract class AbstractClient<A extends Account>
extends Object
implements Client<A>


Field Summary
protected  AccountConfig accountConfig
           
protected  AuthenticationCommandFactory factory
           
static org.slf4j.Logger LOG
           
 
Constructor Summary
AbstractClient(AccountConfig accountConfig)
           
 
Method Summary
 A authenticate()
          Calls the identity module of the OpenStack implementation to authenticate itself against.
protected  Tenant autoDiscoverTenant(Account account)
           
protected abstract  A createAccount()
           
protected abstract  AuthenticationCommandFactory createFactory()
           
protected abstract  void logSettings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG

accountConfig

protected AccountConfig accountConfig

factory

protected AuthenticationCommandFactory factory
Constructor Detail

AbstractClient

public AbstractClient(AccountConfig accountConfig)
Method Detail

logSettings

protected abstract void logSettings()

createFactory

protected abstract AuthenticationCommandFactory createFactory()

createAccount

protected abstract A createAccount()

authenticate

public A authenticate()
Description copied from interface: Client
Calls the identity module of the OpenStack implementation to authenticate itself against. If successful, it returns the internal URL to work with and the authentication token, which will automatically be added to all calls made by the client henceforth.

Specified by:
authenticate in interface Client<A extends Account>

autoDiscoverTenant

protected Tenant autoDiscoverTenant(Account account)


Copyright © 2012-2014 42 BV. All Rights Reserved.