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)
ShellFeature
install
in interface ShellFeature
public HttpAutomationClient connect(String url, String username, String password, String initialDirectory) throws Exception
Exception
public 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 CompletorProvider
public <T> T getValue(Shell shell, Class<T> type, String value)
getValue
in interface ValueAdapter
public static String getNuxeoServerVersion()
Copyright © 2015 Nuxeo SA. All rights reserved.