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 Summary
FieldsModifier 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 final longprotected final SSIExternalResolverprotected Strftime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) voidvoidvoidsetConfigErrMsg(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
protected final org.apache.catalina.ssi.SSIConditionalState conditionalState
-
-
Constructor Details
-
SSIMediator
-
-
Method Details
-
setConfigErrMsg
-
setConfigTimeFmt
-
setConfigTimeFmt
-
setConfigSizeFmt
-
getConfigErrMsg
-
getConfigTimeFmt
-
getConfigSizeFmt
-
getConditionalState
public org.apache.catalina.ssi.SSIConditionalState getConditionalState() -
getVariableNames
-
getFileSize
- Throws:
IOException
-
getFileLastModified
- Throws:
IOException
-
getFileText
- Throws:
IOException
-
isNameReserved
-
getVariableValue
-
setVariableValue
-
getVariableValue
-
substituteVariables
Applies 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
-
setDateVariables
protected void setDateVariables(boolean fromConstructor)
-