|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.automation.client.jaxrs.spi.AbstractAutomationClient
public abstract class AbstractAutomationClient
Method Summary | ||
---|---|---|
void |
asyncExec(Runnable runnable)
|
|
|
getAdapter(Object objToAdapt,
Class<T> adapterType)
Adapts the given object to the given type. |
|
String |
getBaseUrl()
Gets the automation service URL. |
|
RequestInterceptor |
getRequestInterceptor()
Gets access to this request interceptor |
|
Session |
getSession()
Creates a new session. |
|
void |
getSession(AsyncCallback<Session> cb)
Creates asynchronously a new session. |
|
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 |
setBasicAuth(String username,
String password)
|
|
void |
setRequestInterceptor(RequestInterceptor interceptor)
Can be used for intercepting requests before they are being sent to the server. |
|
void |
shutdown()
Cleanup any resources held by this client. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setRequestInterceptor(RequestInterceptor interceptor)
AutomationClient
setRequestInterceptor
in interface AutomationClient
public RequestInterceptor getRequestInterceptor()
AutomationClient
getRequestInterceptor
in interface AutomationClient
public String getBaseUrl()
AutomationClient
getBaseUrl
in interface AutomationClient
public void setBasicAuth(String username, String password)
public void registerAdapter(AdapterFactory<?> factory)
AutomationClient
registerAdapter
in interface AutomationClient
public <T> T getAdapter(Object objToAdapt, Class<T> adapterType)
AutomationClient
Optional operation. Framework that doesn't supports reflection like GWT
must throw UnsupportedOperationException
getAdapter
in interface AutomationClient
public void shutdown()
AutomationClient
shutdown
in interface AutomationClient
public Session getSession()
AutomationClient
getSession
in interface AutomationClient
public Session getSession(String username, String password)
AutomationClient
getSession
in interface AutomationClient
public void getSession(String username, String password, AsyncCallback<Session> cb)
AutomationClient
getSession
in interface AutomationClient
public void getSession(AsyncCallback<Session> cb)
AutomationClient
getSession
in interface AutomationClient
public void asyncExec(Runnable runnable)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |