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
Modifier and TypeFieldDescriptionprotected final String
protected final org.apache.catalina.ssi.SSIConditionalState
protected String
protected String
protected String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
protected int
protected final long
protected final SSIExternalResolver
protected Strftime
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected String
protected String
formatDate
(Date date, TimeZone timeZone) org.apache.catalina.ssi.SSIConditionalState
long
getFileLastModified
(String path, boolean virtual) long
getFileSize
(String path, boolean virtual) getFileText
(String path, boolean virtual) getVariableValue
(String variableName) getVariableValue
(String variableName, String encoding) protected boolean
isNameReserved
(String name) void
void
protected void
populateMatchGroups
(Matcher matcher) void
setConfigErrMsg
(String configErrMsg) void
setConfigSizeFmt
(String configSizeFmt) void
setConfigTimeFmt
(String configTimeFmt) void
setConfigTimeFmt
(String configTimeFmt, boolean fromConstructor) protected void
setDateVariables
(boolean fromConstructor) void
setVariableValue
(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 -
lastMatchCount
protected int lastMatchCount
-
-
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
-
formatDate
-
encode
-
log
-
log
-
setDateVariables
protected void setDateVariables(boolean fromConstructor) -
clearMatchGroups
protected void clearMatchGroups() -
populateMatchGroups
-