public interface IMailboxController
extends java.rmi.Remote
ILexiCom.getMailboxController(String[]).
Also refer to ISessionScript.getMailboxController() and its variants.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLEAR_SET_PROPERTIES
Send property which when included and set to "True" indicates that any advanced properties
set via parameters should be cleared after the command is run.
|
static java.lang.String |
CLIENT_SERVER_ROLE
Property which which contains the client/server role used for the file transfer.
|
static java.lang.String |
COLLECT
Receive property which when included and set to "False" indicates that the receive() method
should not return files previously received.
|
static java.lang.String |
GET_SOURCE
Source filename property which can be used in receive() method parameters object.
|
static java.lang.String |
PROTOCOL
Property which which contains the protocol used for the file transfer.
|
static java.lang.String |
PUT_DESTINATION
Destination filename property which can be used in send() method parameters object.
|
static java.lang.String |
PUT_OPTIONS
PUT command options property which can be used in send() method parameters object.
|
static java.lang.String |
RECEIVER_LAST_PAYLOAD
Get an action controller
|
static java.lang.String |
SET_PREFIX
Send() and receive() parameters can contain advanced property settings, but the property
name must be prefixed by "Set.".
|
static java.lang.String |
USERNAME
Property which which contains the user name associated with a file transfer.
|
static java.lang.String |
VERSALEX_SERIAL_NUMBER_SHORT
Property which which contains the VersaLex serial number associated with
a file transfer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
collect(ILexiComIncoming destination)
Retrieves only previously received payload files
|
java.lang.String[] |
createTempAction()
Create a new, temporary action if necessary to be used for sending and receiving
|
java.lang.String[] |
createTempAction(java.lang.String alias)
Create a new, temporary action if necessary to be used for sending and receiving.
|
void |
end()
Ends the active mailbox action, if kept alive, and removes it
|
void |
end(boolean interrupt)
Ends the active mailbox action, if kept alive, and removes it
|
IActionController |
getActionController(java.lang.String action)
Get an action controller
|
IActionController |
getActionController(java.lang.String[] path) |
java.lang.String[] |
getBaseCommands()
Gets the base action commands for the send and/or receive
|
int |
getHostProtocol()
Returns the protocol for the mailbox's host
|
com.cleo.connector.api.command.ConnectorCommandResult |
getLastProtocolResult()
Retrieves the last protocol command result
(only available on hosts which are a combined host\mailbox)
|
org.w3c.dom.Element |
getLastResult()
Retrieves the last command's result element
|
int |
getMailboxPackaging()
Returns the packaging for the mailbox
|
void |
overrideBaseCommands(java.lang.String[] lines)
Overrides the default base action commands for the send and/or receive
|
boolean |
receive(ILexiComIncoming destination,
boolean keepAlive)
Starts an action, if necessary, and receives one or more payloads
|
boolean |
receive(ILexiComIncoming destination,
java.util.Properties parameters,
boolean keepAlive)
Starts an action, if necessary, and receives one or more payloads
|
boolean |
send(LexiComOutgoing[] source,
boolean keepAlive)
Starts an action, if necessary, and sends multipart payload
|
boolean |
send(LexiComOutgoing[] source,
java.util.Properties parameters,
boolean keepAlive)
Starts an action, if necessary, and sends multipart payload
|
boolean |
send(LexiComOutgoing[] source,
java.util.Properties parameters,
boolean keepAlive,
boolean checkMultiplePuts)
Starts an action, if necessary, and sends multipart payload
|
boolean |
send(LexiComOutgoing[] source,
java.lang.String[] options,
java.util.Properties parameters,
boolean keepAlive)
Starts an action, if necessary, and sends multipart payload
|
boolean |
send(LexiComOutgoing source,
boolean keepAlive)
Starts an action, if necessary, and sends one payload
|
boolean |
send(LexiComOutgoing source,
java.util.Properties parameters,
boolean keepAlive)
Starts an action, if necessary, and sends one payload
|
boolean |
send(LexiComOutgoing source,
java.util.Properties parameters,
boolean keepAlive,
boolean checkMultiplePuts)
Starts an action, if necessary, and sends one payload
|
void |
setHttpResponseListener(IHttpResponseListener httpResponseListener)
Activates a response listener for an HTTP mailbox; not available for AS2, AS4, ebMS, RNIF, and EBICS
|
void |
setType(java.lang.String type)
Sets the run type of the action started by this controller
|
static final java.lang.String PUT_DESTINATION
static final java.lang.String PUT_OPTIONS
static final java.lang.String GET_SOURCE
static final java.lang.String COLLECT
static final java.lang.String CLEAR_SET_PROPERTIES
static final java.lang.String VERSALEX_SERIAL_NUMBER_SHORT
static final java.lang.String USERNAME
static final java.lang.String PROTOCOL
static final java.lang.String CLIENT_SERVER_ROLE
static final java.lang.String SET_PREFIX
static final java.lang.String RECEIVER_LAST_PAYLOAD
IActionController getActionController(java.lang.String[] path) throws java.lang.Exception
java.lang.ExceptionIActionController getActionController(java.lang.String action) throws java.lang.Exception
action - is an action under host\mailboxjava.lang.Exception - if VersaLex object no longer open or if running in CLIENT
mode and remote method invocation errorjava.lang.String[] createTempAction()
throws java.lang.Exception
java.lang.Exceptionjava.lang.String[] createTempAction(java.lang.String alias)
throws java.lang.Exception
alias - base action namejava.lang.Exceptionvoid setType(java.lang.String type)
throws java.lang.Exception
type - the VersaLex action's run type. If using a value other than one
of the constants in XMLLogElements.Thread.type, value must start with X- or
setting may be ignored.java.lang.Exceptionjava.lang.String[] getBaseCommands()
throws java.lang.Exception
java.lang.Exceptionvoid overrideBaseCommands(java.lang.String[] lines)
throws java.lang.Exception
lines - the VersaLex commands (SET, PUT, GET, etc.)java.lang.Exceptionboolean send(LexiComOutgoing source, boolean keepAlive) throws java.lang.Exception
source - local sourcekeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean send(LexiComOutgoing[] source, boolean keepAlive) throws java.lang.Exception
source - local sourceskeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean send(LexiComOutgoing source, java.util.Properties parameters, boolean keepAlive) throws java.lang.Exception
source - local sourceparameters - PUT parameterskeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean send(LexiComOutgoing[] source, java.util.Properties parameters, boolean keepAlive) throws java.lang.Exception
source - local sourcesparameters - PUT parameterskeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean send(LexiComOutgoing source, java.util.Properties parameters, boolean keepAlive, boolean checkMultiplePuts) throws java.lang.Exception
source - local sourceparameters - PUT parameterskeepAlive - keeps the action alive for another send/receivecheckMultiplePuts - indicates an error should be produced of more than
one PUT command is foundjava.lang.Exceptionboolean send(LexiComOutgoing[] source, java.util.Properties parameters, boolean keepAlive, boolean checkMultiplePuts) throws java.lang.Exception
source - local sourcesparameters - PUT parameterskeepAlive - keeps the action alive for another send/receivecheckMultiplePuts - indicates an error should be produced of more than
one PUT command is foundjava.lang.Exceptionboolean send(LexiComOutgoing[] source, java.lang.String[] options, java.util.Properties parameters, boolean keepAlive) throws java.lang.Exception
source - local sourcesoptions - PUT optionsparameters - PUT parameterskeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean receive(ILexiComIncoming destination, boolean keepAlive) throws java.lang.Exception
destination - local destinationkeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean receive(ILexiComIncoming destination, java.util.Properties parameters, boolean keepAlive) throws java.lang.Exception
destination - local destinationparameters - GET parameterskeepAlive - keeps the action alive for another send/receivejava.lang.Exceptionboolean collect(ILexiComIncoming destination) throws java.lang.Exception
destination - local destinationjava.lang.Exceptionorg.w3c.dom.Element getLastResult()
throws java.lang.Exception
java.lang.Exceptioncom.cleo.connector.api.command.ConnectorCommandResult getLastProtocolResult()
throws java.lang.Exception
java.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 if not running remotely)java.lang.Exceptionvoid setHttpResponseListener(IHttpResponseListener httpResponseListener) throws java.lang.Exception
httpResponseListener - response listener (can be null)java.lang.Exceptionint getHostProtocol()
throws java.lang.Exception
java.lang.Exceptionint getMailboxPackaging()
throws java.lang.Exception
java.lang.Exception