public interface AutomationClient
When you attempt to create a new session using the same authentication info as an already created session the session will be reused (TODO this is optional for implementors?)
Note for implementors: the implementation should provide a constructor that initialize the base URL
Modifier and Type | Method and Description |
---|---|
<T> T |
getAdapter(Object objToAdapt,
Class<T> adapterType)
Adapts the given object to the given type.
|
String |
getBaseUrl()
Gets the automation service URL.
|
Session |
getSession()
Creates a new session.
|
void |
getSession(AsyncCallback<Session> cb)
Creates a new session.
|
Session |
getSession(LoginCallback loginCb)
Create a new session using the given login callback to gather login info.
|
void |
getSession(LoginCallback loginCb,
AsyncCallback<Session> cb)
Create asynchronously a new session using the given login callback to gather login info.
|
Session |
getSession(String username,
String password)
Creates a new session using the given login.
|
void |
getSession(String username,
String password,
AsyncCallback<Session> cb)
Creates asynchronously a new session using the given login.
|
void |
registerAdapter(AdapterFactory<?> factory)
Register an adapter for a given type.
|
void |
shutdown()
Cleanup any resources held by this client.
|
String getBaseUrl()
Session getSession()
void getSession(AsyncCallback<Session> cb)
Session getSession(LoginCallback loginCb)
void getSession(LoginCallback loginCb, AsyncCallback<Session> cb)
Session getSession(String username, String password)
void getSession(String username, String password, AsyncCallback<Session> cb)
<T> T getAdapter(Object objToAdapt, Class<T> adapterType)
Optional operation. Framework that doesn't supports reflection like GWT
must throw UnsupportedOperationException
void registerAdapter(AdapterFactory<?> factory)
typeToAdapt
- adapterType
- void shutdown()
Copyright © 2011 Nuxeo SA. All Rights Reserved.