org.apache.catalina.ssi
public class SSIProcessor extends Object
Version: $Revision: 649207 $, $Date: 2008-04-17 19:55:30 +0200 (Thu, 17 Apr 2008) $
| Field Summary | |
|---|---|
| protected static int | BUFFER_SIZE |
| protected HashMap | commands |
| protected static String | COMMAND_END The end pattern |
| protected static String | COMMAND_START The start pattern |
| protected int | debug |
| protected SSIExternalResolver | ssiExternalResolver |
| Constructor Summary | |
|---|---|
| SSIProcessor(SSIExternalResolver ssiExternalResolver, int debug) | |
| Method Summary | |
|---|---|
| protected void | addBuiltinCommands() |
| void | addCommand(String name, SSICommand command) |
| protected boolean | charCmp(String buf, int index, String command) |
| protected boolean | isQuote(char c) |
| protected boolean | isSpace(char c) |
| protected String[] | parseParamNames(StringBuffer cmd, int start)
Parse a StringBuffer and take out the param type token. |
| protected String[] | parseParamValues(StringBuffer cmd, int start, int count)
Parse a StringBuffer and take out the param token. |
| long | process(Reader reader, long lastModifiedDate, PrintWriter writer)
Process a file with server-side commands, reading from reader and
writing the processed version to writer. |
requestHandler
Parameters: cmd a value of type 'StringBuffer'
Returns: a value of type 'String[]'
requestHandler
Parameters: cmd a value of type 'StringBuffer'
Returns: a value of type 'String[]'
Parameters: reader the reader to read the file containing SSIs from writer the writer to write the file with the SSIs processed.
Returns: the most current modified date resulting from any SSI commands
Throws: IOException when things go horribly awry. Should be unlikely since the SSICommand usually catches 'normal' IOExceptions.