| com.jcorporate.expresso.core.controller.DBController com.jcorporate.expresso.ext.controller.ServeTextFile
ServeTextFile | public class ServeTextFile extends DBController (Code) | | This controller is used to serve up text files. It helps provide a particularly
useful mechanism for tutorial purposes.
PLEASE NOTE!: It is DEFINITELY not recommended that this controller
should be opened up to anybody but the Administrator in a production
environment! It could be used by malicious attackers to cause the system
to cough up password files, and many other things that they would not normally
have access to
author: Michael Rimov - Adapted from code created by Peter Pilgrim. |
Inner Class :class Parameters | |
Inner Class :static class ReservedWord | |
DEFAULT_CPLUS_COMMENT_COLOR | final public static String DEFAULT_CPLUS_COMMENT_COLOR(Code) | | |
DEFAULT_CSTYLE_COMMENT_COLOR | final public static String DEFAULT_CSTYLE_COMMENT_COLOR(Code) | | |
DEFAULT_DECIMAL_NUMBER_COLOR | final public static String DEFAULT_DECIMAL_NUMBER_COLOR(Code) | | |
DEFAULT_DOUBLE_QUOTE_COLOR | final public static String DEFAULT_DOUBLE_QUOTE_COLOR(Code) | | |
DEFAULT_PRIMITIVE_VAR_COLOR | final public static String DEFAULT_PRIMITIVE_VAR_COLOR(Code) | | |
DEFAULT_RESERVED_KEYWORD_COLOR | final public static String DEFAULT_RESERVED_KEYWORD_COLOR(Code) | | |
DEFAULT_SINGLE_QUOTE_COLOR | final public static String DEFAULT_SINGLE_QUOTE_COLOR(Code) | | |
DEFAULT_SPECIAL_KEYWORD_COLOR | final public static String DEFAULT_SPECIAL_KEYWORD_COLOR(Code) | | |
cplusCommentColor | final protected static String cplusCommentColor(Code) | | |
cstyleCommentColor | final protected static String cstyleCommentColor(Code) | | |
decimalNumberColor | final protected static String decimalNumberColor(Code) | | |
doubleQuoteColor | final protected static String doubleQuoteColor(Code) | | |
primitiveVarColor | final protected static String primitiveVarColor(Code) | | |
reservedKeywordColor | final protected static String reservedKeywordColor(Code) | | |
singleQuoteColor | final protected static String singleQuoteColor(Code) | | |
specialKeywordColor | final protected static String specialKeywordColor(Code) | | |
ServeTextFile | public ServeTextFile()(Code) | | |
runServeJavaFileState | protected ControllerResponse runServeJavaFileState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code) | | Serves up a java source file as specified by the parameter. This
state is different from that of servTextFile in that it color codes
all the keywords, etc in the java file.
Our goal here is to provide something that is reasonably secure in that we remove
all URL trickery, and we also only serve up NON source code files. Again,
this should be NOT used in a production environment and only exists for
teaching purposes.
Parameters: request - The ControllerRequest Object Parameters: response - The ControllerResponse Object ControllerResponse throws: ControllerException - upon error |
substituteEntity | final protected static String substituteEntity(char c9)(Code) | | |
|
|