Package com.adaptris.core.services.system
Implementations of
Service
and supporting classes allow execution of
system commands.
You should take care when configuring these classes; it can present an audit trail issue when
used in combination with DynamicServiceExecutor
if the
command(s) that are executed are not properly configured or validated. All commands will be
executed with the current users permissions and subject to the virtual machines security manager.
-
Interface Summary Interface Description CommandArgument Interface for providing command line arguments to theSystemCommandExecutorService
CommandBuilder Interface for building a process.CommandOutputCapture Interface for capturing output from a process. -
Class Summary Class Description AddMetaDataValue Implementation ofCommandOutputCapture
that saves the output of the system command to a metadata valueDefaultCommandBuilder Default implementation ofCommandBuilder
IgnoreOutput Null implementation ofCommandOutputCapture
MetadataCommandArgument Provides the metadata value associated with the specified key as a command line argumentOverwritePayload Implementation ofCommandOutputCapture
that overwrites the existing message with the output.StaticCommandArgument Returns a fixed value for this command line argument.SystemCommandExecutorService Service that runs the specified system executable with the provided arguments, optionally capturing the output.