public class AutomationFeature extends Object implements ShellFeature, ValueAdapter, CompletorProvider
Modifier and Type | Field and Description |
---|---|
static String |
AUTOMATION_NS |
Constructor and Description |
---|
AutomationFeature() |
Modifier and Type | Method and Description |
---|---|
HttpAutomationClient |
connect(String url,
String username,
String password,
String initialDirectory) |
void |
disconnect() |
HttpAutomationClient |
getClient() |
jline.Completor |
getCompletor(Shell shell,
CommandType cmd,
Class<?> type) |
RemoteContext |
getContext() |
static String |
getNuxeoServerVersion() |
Session |
getSession() |
<T> T |
getValue(Shell shell,
Class<T> type,
String value) |
void |
install(Shell shell)
Install the feature in the given shell instance.
|
boolean |
isConnected() |
public static final String AUTOMATION_NS
public void install(Shell shell)
ShellFeature
install
in interface ShellFeature
public HttpAutomationClient connect(String url, String username, String password, String initialDirectory) throws Exception
Exception
public boolean isConnected()
public void disconnect()
public HttpAutomationClient getClient()
public Session getSession()
public RemoteContext getContext()
public jline.Completor getCompletor(Shell shell, CommandType cmd, Class<?> type)
getCompletor
in interface CompletorProvider
public <T> T getValue(Shell shell, Class<T> type, String value)
getValue
in interface ValueAdapter
public static String getNuxeoServerVersion()
Copyright © 2011 Nuxeo SA. All Rights Reserved.