Package org.apache.catalina.ssi
Interface SSIExternalResolver
- 
- All Known Implementing Classes:
- SSIServletExternalResolver
 
 public interface SSIExternalResolverInterface used by SSIMediator to talk to the 'outside world' ( usually a servlet )- Author:
- Dan Sandberg
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddVariableNames(java.util.Collection<java.lang.String> variableNames)Adds any external variables to the variableNames collection.java.util.DategetCurrentDate()Returns the current date.longgetFileLastModified(java.lang.String path, boolean virtual)longgetFileSize(java.lang.String path, boolean virtual)java.lang.StringgetFileText(java.lang.String path, boolean virtual)java.lang.StringgetVariableValue(java.lang.String name)voidlog(java.lang.String message, java.lang.Throwable throwable)voidsetVariableValue(java.lang.String name, java.lang.String value)Set the named variable to the specified value.
 
- 
- 
- 
Method Detail- 
addVariableNamesvoid addVariableNames(java.util.Collection<java.lang.String> variableNames) Adds any external variables to the variableNames collection.- Parameters:
- variableNames- the collection to add to
 
 - 
getVariableValuejava.lang.String getVariableValue(java.lang.String name) 
 - 
setVariableValuevoid setVariableValue(java.lang.String name, java.lang.String value)Set the named variable to the specified value. If value is null, then the variable will be removed ( ie. a call to getVariableValue will return null )- Parameters:
- name- of the variable
- value- of the variable
 
 - 
getCurrentDatejava.util.Date getCurrentDate() Returns the current date. This is useful for putting the SSI stuff in a regression test. Since you can make the current date a constant, it makes testing easier since the output won't change.- Returns:
- the data
 
 - 
getFileSizelong getFileSize(java.lang.String path, boolean virtual) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getFileLastModifiedlong getFileLastModified(java.lang.String path, boolean virtual) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getFileTextjava.lang.String getFileText(java.lang.String path, boolean virtual) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
logvoid log(java.lang.String message, java.lang.Throwable throwable)
 
- 
 
-