Class SSIExec
java.lang.Object
org.apache.catalina.ssi.SSIExec
- All Implemented Interfaces:
SSICommand
Implements the Server-side #exec command.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intSize of the buffer used for reading command output.protected final SSIIncludeHelper instance for processing CGI includes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongprocess(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) Processes the exec directive to run CGI scripts or system commands.
-
Field Details
-
ssiInclude
Helper instance for processing CGI includes. -
BUFFER_SIZE
protected static final int BUFFER_SIZESize of the buffer used for reading command output.- See Also:
-
-
Constructor Details
-
SSIExec
public SSIExec()Default constructor.
-
-
Method Details
-
process
public long process(SSIMediator ssiMediator, String commandName, String[] paramNames, String[] paramValues, PrintWriter writer) Processes the exec directive to run CGI scripts or system commands.- Specified by:
processin interfaceSSICommand- Parameters:
ssiMediator- the ssi mediatorcommandName- the name of the actual command ( ie. echo )paramNames- The parameter namesparamValues- The parameter valueswriter- the writer to output to- Returns:
- the most current modified date resulting from any SSI commands
-