public interface IActionController
extends java.rmi.Remote
ILexiCom.getActionController(String[]).
Also refer to ISessionScript.getMailboxController() and its variants.| Modifier and Type | Method and Description |
|---|---|
LexCommand |
build(java.lang.String[] options,
java.lang.String command,
java.lang.String source,
java.lang.String destination,
java.util.Properties parameters)
Builds a VersaLex command from its components
|
void |
end()
Ends the action, if necessary
|
void |
end(boolean interrupt)
Ends the action, if necessary
|
boolean |
execute(LexCommand command)
Starts the action, if necessary, and executes a VersaLex command
|
boolean |
execute(java.lang.String line)
Starts the action, if necessary, and executes a VersaLex command
|
boolean |
get(java.lang.String[] options,
java.lang.String source,
java.io.File destination,
java.util.Properties parameters)
Starts the action, if necessary, and receives one or more files
|
boolean |
get(java.lang.String[] options,
java.lang.String source,
ILexiComIncoming destination,
java.util.Properties parameters)
Starts the action, if necessary, and receives one or more files
|
boolean |
get(java.lang.String[] options,
java.lang.String source,
java.util.Properties parameters)
Starts the action, if necessary, and receives one or more files to the default destination
|
java.lang.String |
getAlias()
Gets the action's alias
|
IActionController |
getAnotherActionController()
Returns another action controller for an empty, temporary action
|
java.lang.String[] |
getBaseCommands()
Gets the commands associated to the action
|
IDirectoryController |
getDirectoryController()
For FTP_CLIENT or SSHFTP_CLIENT, returns a directory controller
|
java.lang.String |
getHostAlias()
Gets the action's host alias
|
int |
getHostProtocol()
Returns the protocol for the action's host
|
com.cleo.connector.api.command.ConnectorCommandResult |
getLastConnectorResult()
Retrieves the last connector command result
(only available on hosts which are a combined host\mailbox)
|
org.w3c.dom.Element |
getLastResult()
Retrieves the last command's result element
|
java.lang.String |
getMacroValue(java.lang.String macroName)
Returns the current value of a macro variable
|
java.lang.String |
getMailboxAlias()
Gets the action's mailbox alias
|
int |
getMailboxPackaging()
Returns the packaging for the mailbox
|
java.lang.String[] |
getMessages(boolean noColor)
Returns list of messages from current or last run of action
|
boolean |
isRunning()
Returns true if action is running
|
void |
join(long millis)
Waits for the action to finish.
|
void |
overrideBaseCommands(java.lang.String[] lines)
Overrides the commands associated to the action.
|
LexCommand |
parse(java.lang.String line)
Parses a command into its components
|
LexCommand |
parse(java.lang.String line,
boolean validate)
Parses a command into its components
|
boolean |
put(java.lang.String[] options,
java.io.File[] source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one or more files
|
boolean |
put(java.lang.String[] options,
java.io.File source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one file
|
boolean |
put(java.lang.String[] options,
java.io.InputStream[] source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one or more files
|
boolean |
put(java.lang.String[] options,
java.io.InputStream source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one file
|
boolean |
put(java.lang.String[] options,
com.cleo.lexicom.beans.IRemoteLexiComOutgoing source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one or more files
|
boolean |
put(java.lang.String[] options,
LexiComOutgoing[] source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one or more files
|
boolean |
put(java.lang.String[] options,
LexiComOutgoing source,
java.lang.String destination,
java.util.Properties parameters)
Starts the action, if necessary, and sends one file
|
void |
setType(java.lang.String type)
Sets the action's run type
|
void |
xmlLogDetail(java.lang.String s,
int level,
boolean error,
boolean warning)
Logs Detail element
|
java.lang.String getAlias()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getMailboxAlias()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getHostAlias()
throws java.lang.Exception
java.lang.Exceptionvoid setType(java.lang.String type)
throws java.lang.Exception
type - the VersaLex action's run typejava.lang.Exceptionjava.lang.String[] getBaseCommands()
throws java.lang.Exception
java.lang.Exceptionvoid overrideBaseCommands(java.lang.String[] lines)
throws java.lang.Exception
lines - the new VersaLex commands (SET, PUT, GET, etc.)java.lang.ExceptionLexCommand parse(java.lang.String line) throws java.lang.Exception
line - the VersaLex command to be parsedjava.lang.ExceptionLexCommand parse(java.lang.String line, boolean validate) throws java.lang.Exception
line - the VersaLex command to be parsedvalidate - indicates whether the parsed command should be validatedjava.lang.ExceptionLexCommand build(java.lang.String[] options, java.lang.String command, java.lang.String source, java.lang.String destination, java.util.Properties parameters) throws java.lang.Exception
options - the command options (-ASC, -UNI, ...)command - the command name (e.g. PUT, GET, SET, ...)source - the command source file pathdestination - the command destination file pathparameters - any additional command parameters (e.g. Content-Type=EDIFACT)java.lang.Exceptionboolean execute(java.lang.String line)
throws java.lang.Exception
line - the VersaLex command to executejava.lang.Exceptionboolean execute(LexCommand command) throws java.lang.Exception
command - the VersaLex command to executejava.lang.Exceptionboolean put(java.lang.String[] options,
java.io.File source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local source (* and ? supported in name)destination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean put(java.lang.String[] options,
java.io.File[] source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local sourcedestination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean put(java.lang.String[] options,
java.io.InputStream source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local sourcedestination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean put(java.lang.String[] options,
java.io.InputStream[] source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local sourcesdestination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean put(java.lang.String[] options,
LexiComOutgoing source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local sourcedestination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean put(java.lang.String[] options,
LexiComOutgoing[] source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local sourcesdestination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean put(java.lang.String[] options,
com.cleo.lexicom.beans.IRemoteLexiComOutgoing source,
java.lang.String destination,
java.util.Properties parameters)
throws java.lang.Exception
options - send optionssource - local source remote wrapperdestination - remote destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean get(java.lang.String[] options,
java.lang.String source,
java.io.File destination,
java.util.Properties parameters)
throws java.lang.Exception
options - receive optionssource - remote source (FTP only) (can be null)destination - local destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean get(java.lang.String[] options,
java.lang.String source,
ILexiComIncoming destination,
java.util.Properties parameters)
throws java.lang.Exception
options - receive optionssource - remote source (FTP only) (can be null)destination - local destination (can be null)parameters - command parameters (can be null)java.lang.Exceptionboolean get(java.lang.String[] options,
java.lang.String source,
java.util.Properties parameters)
throws java.lang.Exception
options - receive optionssource - remote source (FTP only) (can be null)parameters - command parameters (can be null)java.lang.Exceptionvoid xmlLogDetail(java.lang.String s,
int level,
boolean error,
boolean warning)
throws java.lang.Exception
s - detail messages receive optionslevel - message levelerror - true if error conditionwarning - true if warning conditionjava.lang.Exceptionorg.w3c.dom.Element getLastResult()
throws java.lang.Exception
java.lang.Exceptioncom.cleo.connector.api.command.ConnectorCommandResult getLastConnectorResult()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String[] getMessages(boolean noColor)
throws java.lang.Exception
java.lang.Exceptionjava.lang.String getMacroValue(java.lang.String macroName)
throws java.lang.Exception
macroName - is name of the macro to retrievejava.lang.Exceptionvoid end() throws java.lang.Exception
java.lang.Exceptionvoid end(boolean interrupt) throws java.lang.Exception
interrupt - true if should interrupt action (from separate thread; call Thread.interrupt() first)java.lang.Exceptionint getHostProtocol()
throws java.lang.Exception
java.lang.Exceptionint getMailboxPackaging()
throws java.lang.Exception
java.lang.Exceptionboolean isRunning()
throws java.lang.Exception
java.lang.Exceptionvoid join(long millis) throws java.lang.Exception
millis - the time to wait in millisecondsjava.lang.ExceptionIActionController getAnotherActionController() throws java.lang.Exception
java.lang.ExceptionIDirectoryController getDirectoryController() throws java.lang.Exception
java.lang.Exception