Package org.apache.catalina.ssi
Class SSIMediator
java.lang.Object
org.apache.catalina.ssi.SSIMediator
Allows the different SSICommand implementations to share data/talk to each other
- Author:
- Bip Thelin, Amy Roh, Paul Speed, Dan Sandberg, David Becker
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Stringprotected final org.apache.catalina.ssi.SSIConditionalStateprotected Stringprotected Stringprotected Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected intprotected final longprotected final SSIExternalResolverprotected Strftime
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected Stringprotected StringformatDate(Date date, TimeZone timeZone) org.apache.catalina.ssi.SSIConditionalStatelonggetFileLastModified(String path, boolean virtual) longgetFileSize(String path, boolean virtual) getFileText(String path, boolean virtual) getVariableValue(String variableName) getVariableValue(String variableName, String encoding) protected booleanisNameReserved(String name) voidvoidprotected voidpopulateMatchGroups(Matcher matcher) voidsetConfigErrMsg(String configErrMsg) voidsetConfigSizeFmt(String configSizeFmt) voidsetConfigTimeFmt(String configTimeFmt) voidsetConfigTimeFmt(String configTimeFmt, boolean fromConstructor) protected voidsetDateVariables(boolean fromConstructor) voidsetVariableValue(String variableName, String variableValue) Applies variable substitution to the specified String and returns the new resolved string.
- 
Field Details- 
ENCODING_NONE- See Also:
 
- 
ENCODING_ENTITY- See Also:
 
- 
ENCODING_URL- See Also:
 
- 
DEFAULT_CONFIG_ERR_MSG- See Also:
 
- 
DEFAULT_CONFIG_TIME_FMT- See Also:
 
- 
DEFAULT_CONFIG_SIZE_FMT- See Also:
 
- 
configErrMsg
- 
configTimeFmt
- 
configSizeFmt
- 
className
- 
ssiExternalResolver
- 
lastModifiedDateprotected final long lastModifiedDate
- 
strftime
- 
conditionalStateprotected final org.apache.catalina.ssi.SSIConditionalState conditionalState
- 
lastMatchCountprotected int lastMatchCount
 
- 
- 
Constructor Details- 
SSIMediator
 
- 
- 
Method Details- 
setConfigErrMsg
- 
setConfigTimeFmt
- 
setConfigTimeFmt
- 
setConfigSizeFmt
- 
getConfigErrMsg
- 
getConfigTimeFmt
- 
getConfigSizeFmt
- 
getConditionalStatepublic org.apache.catalina.ssi.SSIConditionalState getConditionalState()
- 
getVariableNames
- 
getFileSize- Throws:
- IOException
 
- 
getFileLastModified- Throws:
- IOException
 
- 
getFileText- Throws:
- IOException
 
- 
isNameReserved
- 
getVariableValue
- 
setVariableValue
- 
getVariableValue
- 
substituteVariablesApplies variable substitution to the specified String and returns the new resolved string.- Parameters:
- val- The value which should be checked
- Returns:
- the value after variable substitution
 
- 
formatDate
- 
encode
- 
log
- 
log
- 
setDateVariablesprotected void setDateVariables(boolean fromConstructor) 
- 
clearMatchGroupsprotected void clearMatchGroups()
- 
populateMatchGroups
 
-