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