Interface SSIExternalResolver
- All Known Implementing Classes:
SSIServletExternalResolver
public interface SSIExternalResolver
Interface used by SSIMediator to talk to the 'outside world' ( usually a servlet )
- Author:
- Dan Sandberg
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVariableNames
(Collection<String> variableNames) Adds any external variables to the variableNames collection.Returns the current date.long
getFileLastModified
(String path, boolean virtual) long
getFileSize
(String path, boolean virtual) getFileText
(String path, boolean virtual) getVariableValue
(String name) void
void
setVariableValue
(String name, String value) Set the named variable to the specified value.
-
Method Details
-
addVariableNames
Adds any external variables to the variableNames collection.- Parameters:
variableNames
- the collection to add to
-
getVariableValue
-
setVariableValue
-
getCurrentDate
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
-
getFileSize
- Throws:
IOException
-
getFileLastModified
- Throws:
IOException
-
getFileText
- Throws:
IOException
-
log
-