| java.lang.Object org.apache.catalina.ssi.SSIProcessor
SSIProcessor | public class SSIProcessor (Code) | | The entry point to SSI processing. This class does the actual parsing, delegating to the SSIMediator, SSICommand, and
SSIExternalResolver as necessary[
author: Dan Sandberg version: $Revision: 1.1 $, $Date: 2002/05/24 04:38:58 $ |
Method Summary | |
protected void | addBuiltinCommands() | public void | addCommand(String name, SSICommand command) | protected boolean | charCmp(String buf, int index, String command) | 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) Parse a StringBuffer and take out the param token. | public void | process(Reader reader, Date lastModifiedDate, PrintWriter writer) Process a file with server-side commands, reading from reader and writing the processed
version to writer.
NOTE: We really should be doing this in a streaming way rather than converting it to an array first.
Parameters: reader - the reader to read the file containing SSIs from Parameters: writer - the writer to write the file with the SSIs processed. throws: IOException - when things go horribly awry. |
BUFFER_SIZE | final protected static int BUFFER_SIZE(Code) | | |
COMMAND_END | final protected static String COMMAND_END(Code) | | The end pattern
|
COMMAND_START | final protected static String COMMAND_START(Code) | | The start pattern
|
debug | protected int debug(Code) | | |
addBuiltinCommands | protected void addBuiltinCommands()(Code) | | |
isSpace | protected boolean isSpace(char c)(Code) | | |
parseParamNames | protected String[] parseParamNames(StringBuffer cmd, int start)(Code) | | Parse a StringBuffer and take out the param type token.
Called from requestHandler
Parameters: cmd - a value of type 'StringBuffer' a value of type 'String[]' |
parseParamValues | protected String[] parseParamValues(StringBuffer cmd, int start)(Code) | | Parse a StringBuffer and take out the param token.
Called from requestHandler
Parameters: cmd - a value of type 'StringBuffer' a value of type 'String[]' |
process | public void process(Reader reader, Date lastModifiedDate, PrintWriter writer) throws IOException(Code) | | Process a file with server-side commands, reading from reader and writing the processed
version to writer.
NOTE: We really should be doing this in a streaming way rather than converting it to an array first.
Parameters: reader - the reader to read the file containing SSIs from Parameters: writer - the writer to write the file with the SSIs processed. throws: IOException - when things go horribly awry. Should be unlikely sincethe SSICommand usually catches 'normal' IOExceptions. |
|
|