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 Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Stringprotected StringformatDate(Date date, TimeZone timeZone) longgetFileLastModified(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
-
lastModifiedDate
protected final long lastModifiedDate -
strftime
-
conditionalState
-
lastMatchCount
protected int lastMatchCount
-
-
Constructor Details
-
SSIMediator
-
-
Method Details
-
setConfigErrMsg
-
setConfigTimeFmt
-
setConfigTimeFmt
-
setConfigSizeFmt
-
getConfigErrMsg
-
getConfigTimeFmt
-
getConfigSizeFmt
-
getConditionalState
-
getVariableNames
-
getFileSize
- Throws:
IOException
-
getFileLastModified
- Throws:
IOException
-
getFileText
- Throws:
IOException
-
isNameReserved
-
getVariableValue
-
setVariableValue
-
getVariableValue
-
substituteVariables
-
formatDate
-
encode
-
log
-
log
-
setDateVariables
protected void setDateVariables(boolean fromConstructor) -
clearMatchGroups
protected void clearMatchGroups() -
populateMatchGroups
-