public class SSIMediator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
className |
protected org.apache.catalina.ssi.SSIConditionalState |
conditionalState |
protected java.lang.String |
configErrMsg |
protected java.lang.String |
configSizeFmt |
protected java.lang.String |
configTimeFmt |
protected static java.lang.String |
DEFAULT_CONFIG_ERR_MSG |
protected static java.lang.String |
DEFAULT_CONFIG_SIZE_FMT |
protected static java.lang.String |
DEFAULT_CONFIG_TIME_FMT |
protected long |
lastModifiedDate |
protected SSIExternalResolver |
ssiExternalResolver |
protected Strftime |
strftime |
Constructor and Description |
---|
SSIMediator(SSIExternalResolver ssiExternalResolver,
long lastModifiedDate) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
encode(java.lang.String value,
java.lang.String encoding) |
protected java.lang.String |
formatDate(java.util.Date date,
java.util.TimeZone timeZone) |
org.apache.catalina.ssi.SSIConditionalState |
getConditionalState() |
java.lang.String |
getConfigErrMsg() |
java.lang.String |
getConfigSizeFmt() |
java.lang.String |
getConfigTimeFmt() |
long |
getFileLastModified(java.lang.String path,
boolean virtual) |
long |
getFileSize(java.lang.String path,
boolean virtual) |
java.lang.String |
getFileText(java.lang.String path,
boolean virtual) |
java.util.Collection<java.lang.String> |
getVariableNames() |
java.lang.String |
getVariableValue(java.lang.String variableName) |
java.lang.String |
getVariableValue(java.lang.String variableName,
java.lang.String encoding) |
protected boolean |
isNameReserved(java.lang.String name) |
void |
log(java.lang.String message) |
void |
log(java.lang.String message,
java.lang.Throwable throwable) |
void |
setConfigErrMsg(java.lang.String configErrMsg) |
void |
setConfigSizeFmt(java.lang.String configSizeFmt) |
void |
setConfigTimeFmt(java.lang.String configTimeFmt) |
void |
setConfigTimeFmt(java.lang.String configTimeFmt,
boolean fromConstructor) |
protected void |
setDateVariables(boolean fromConstructor) |
void |
setVariableValue(java.lang.String variableName,
java.lang.String variableValue) |
java.lang.String |
substituteVariables(java.lang.String val)
Applies variable substitution to the specified String and returns the
new resolved string.
|
protected static final java.lang.String DEFAULT_CONFIG_ERR_MSG
protected static final java.lang.String DEFAULT_CONFIG_TIME_FMT
protected static final java.lang.String DEFAULT_CONFIG_SIZE_FMT
protected java.lang.String configErrMsg
protected java.lang.String configTimeFmt
protected java.lang.String configSizeFmt
protected final java.lang.String className
protected final SSIExternalResolver ssiExternalResolver
protected final long lastModifiedDate
protected Strftime strftime
protected final org.apache.catalina.ssi.SSIConditionalState conditionalState
public SSIMediator(SSIExternalResolver ssiExternalResolver, long lastModifiedDate)
public void setConfigErrMsg(java.lang.String configErrMsg)
public void setConfigTimeFmt(java.lang.String configTimeFmt)
public void setConfigTimeFmt(java.lang.String configTimeFmt, boolean fromConstructor)
public void setConfigSizeFmt(java.lang.String configSizeFmt)
public java.lang.String getConfigErrMsg()
public java.lang.String getConfigTimeFmt()
public java.lang.String getConfigSizeFmt()
public org.apache.catalina.ssi.SSIConditionalState getConditionalState()
public java.util.Collection<java.lang.String> getVariableNames()
public long getFileSize(java.lang.String path, boolean virtual) throws java.io.IOException
java.io.IOException
public long getFileLastModified(java.lang.String path, boolean virtual) throws java.io.IOException
java.io.IOException
public java.lang.String getFileText(java.lang.String path, boolean virtual) throws java.io.IOException
java.io.IOException
protected boolean isNameReserved(java.lang.String name)
public java.lang.String getVariableValue(java.lang.String variableName)
public void setVariableValue(java.lang.String variableName, java.lang.String variableValue)
public java.lang.String getVariableValue(java.lang.String variableName, java.lang.String encoding)
public java.lang.String substituteVariables(java.lang.String val)
protected java.lang.String formatDate(java.util.Date date, java.util.TimeZone timeZone)
protected java.lang.String encode(java.lang.String value, java.lang.String encoding)
public void log(java.lang.String message)
public void log(java.lang.String message, java.lang.Throwable throwable)
protected void setDateVariables(boolean fromConstructor)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.