public class AutomationFeature extends Object implements ShellFeature, ValueAdapter, CompletorProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTOMATION_NS |
protected RemoteContext |
ctx |
| Constructor and Description |
|---|
AutomationFeature() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCommands(CommandRegistry reg,
Session session) |
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
protected RemoteContext ctx
public AutomationFeature()
public void install(Shell shell)
ShellFeatureinstall in interface ShellFeaturepublic HttpAutomationClient connect(String url, String username, String password, String initialDirectory) throws Exception
Exceptionpublic boolean isConnected()
protected void buildCommands(CommandRegistry reg, Session session)
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 CompletorProviderpublic <T> T getValue(Shell shell, Class<T> type, String value)
getValue in interface ValueAdapterpublic static String getNuxeoServerVersion()
Copyright © 2016 Nuxeo SA. All rights reserved.