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 static String |
DEFAULT_CONFIG_ERR_MSG |
protected static String |
DEFAULT_CONFIG_SIZE_FMT |
protected static String |
DEFAULT_CONFIG_TIME_FMT |
protected long |
lastModifiedDate |
protected SSIExternalResolver |
ssiExternalResolver |
protected Strftime |
strftime |
protected static URLEncoder |
urlEncoder |
Constructor and Description |
---|
SSIMediator(SSIExternalResolver ssiExternalResolver,
long lastModifiedDate) |
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 DEFAULT_CONFIG_ERR_MSG
protected static final String DEFAULT_CONFIG_TIME_FMT
protected static final String DEFAULT_CONFIG_SIZE_FMT
protected static final URLEncoder urlEncoder
protected String configErrMsg
protected String configTimeFmt
protected String configSizeFmt
protected final 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(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)
val
- The value which should be checkedpublic void log(String message)
protected void setDateVariables(boolean fromConstructor)
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.