FileDocCategorySizeDatePackage
SSIExternalResolver.javaAPI DocApache Tomcat 6.0.142507Fri Jul 20 04:20:32 BST 2007org.apache.catalina.ssi

SSIExternalResolver

public interface SSIExternalResolver
Interface used by SSIMediator to talk to the 'outside world' ( usually a servlet )
author
Dan Sandberg
version
$Revision: 531303 $, $Date: 2007-04-23 02:24:01 +0200 (lun., 23 avr. 2007) $

Fields Summary
Constructors Summary
Methods Summary
public voidaddVariableNames(java.util.Collection variableNames)
Adds any external variables to the variableNames collection.

param
variableNames the collection to add to

public java.util.DategetCurrentDate()
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.

return
the data

public longgetFileLastModified(java.lang.String path, boolean virtual)

public longgetFileSize(java.lang.String path, boolean virtual)

public java.lang.StringgetFileText(java.lang.String path, boolean virtual)

public java.lang.StringgetVariableValue(java.lang.String name)

public voidlog(java.lang.String message, java.lang.Throwable throwable)

public voidsetVariableValue(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 )

param
name of the variable
param
value of the variable