FileDocCategorySizeDatePackage
SSIExternalResolver.javaAPI DocGlassfish v2 API3593Fri May 04 22:32:20 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: 1.4 $, $Date: 2007/05/05 05:32:19 $

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