org.apache.catalina.ssi

Class SSIMediator

public class SSIMediator extends Object

Allows the different SSICommand implementations to share data/talk to each other

Version: $Revision: 708124 $, $Date: 2008-10-27 11:07:07 +0100 (Mon, 27 Oct 2008) $

Author: Bip Thelin Amy Roh Paul Speed Dan Sandberg David Becker

Field Summary
protected StringclassName
protected SSIConditionalStateconditionalState
protected StringconfigErrMsg
protected StringconfigSizeFmt
protected StringconfigTimeFmt
protected intdebug
protected static StringDEFAULT_CONFIG_ERR_MSG
protected static StringDEFAULT_CONFIG_SIZE_FMT
protected static StringDEFAULT_CONFIG_TIME_FMT
protected longlastModifiedDate
protected SSIExternalResolverssiExternalResolver
protected Strftimestrftime
protected static URLEncoderurlEncoder
Constructor Summary
SSIMediator(SSIExternalResolver ssiExternalResolver, long lastModifiedDate, int debug)
Method Summary
protected Stringencode(String value, String encoding)
protected StringformatDate(Date date, TimeZone timeZone)
SSIConditionalStategetConditionalState()
StringgetConfigErrMsg()
StringgetConfigSizeFmt()
StringgetConfigTimeFmt()
longgetFileLastModified(String path, boolean virtual)
longgetFileSize(String path, boolean virtual)
StringgetFileText(String path, boolean virtual)
CollectiongetVariableNames()
StringgetVariableValue(String variableName)
StringgetVariableValue(String variableName, String encoding)
protected booleanisNameReserved(String name)
voidlog(String message)
voidlog(String message, Throwable throwable)
voidsetConfigErrMsg(String configErrMsg)
voidsetConfigSizeFmt(String configSizeFmt)
voidsetConfigTimeFmt(String configTimeFmt)
voidsetConfigTimeFmt(String configTimeFmt, boolean fromConstructor)
protected voidsetDateVariables(boolean fromConstructor)
voidsetVariableValue(String variableName, String variableValue)
StringsubstituteVariables(String val)
Applies variable substitution to the specified String and returns the new resolved string.

Field Detail

className

protected String className

conditionalState

protected SSIConditionalState conditionalState

configErrMsg

protected String configErrMsg

configSizeFmt

protected String configSizeFmt

configTimeFmt

protected String configTimeFmt

debug

protected int debug

DEFAULT_CONFIG_ERR_MSG

protected static final String DEFAULT_CONFIG_ERR_MSG

DEFAULT_CONFIG_SIZE_FMT

protected static final String DEFAULT_CONFIG_SIZE_FMT

DEFAULT_CONFIG_TIME_FMT

protected static final String DEFAULT_CONFIG_TIME_FMT

lastModifiedDate

protected long lastModifiedDate

ssiExternalResolver

protected SSIExternalResolver ssiExternalResolver

strftime

protected Strftime strftime

urlEncoder

protected static URLEncoder urlEncoder

Constructor Detail

SSIMediator

public SSIMediator(SSIExternalResolver ssiExternalResolver, long lastModifiedDate, int debug)

Method Detail

encode

protected String encode(String value, String encoding)

formatDate

protected String formatDate(Date date, TimeZone timeZone)

getConditionalState

public SSIConditionalState getConditionalState()

getConfigErrMsg

public String getConfigErrMsg()

getConfigSizeFmt

public String getConfigSizeFmt()

getConfigTimeFmt

public String getConfigTimeFmt()

getFileLastModified

public long getFileLastModified(String path, boolean virtual)

getFileSize

public long getFileSize(String path, boolean virtual)

getFileText

public String getFileText(String path, boolean virtual)

getVariableNames

public Collection getVariableNames()

getVariableValue

public String getVariableValue(String variableName)

getVariableValue

public String getVariableValue(String variableName, String encoding)

isNameReserved

protected boolean isNameReserved(String name)

log

public void log(String message)

log

public void log(String message, Throwable throwable)

setConfigErrMsg

public void setConfigErrMsg(String configErrMsg)

setConfigSizeFmt

public void setConfigSizeFmt(String configSizeFmt)

setConfigTimeFmt

public void setConfigTimeFmt(String configTimeFmt)

setConfigTimeFmt

public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor)

setDateVariables

protected void setDateVariables(boolean fromConstructor)

setVariableValue

public void setVariableValue(String variableName, String variableValue)

substituteVariables

public String substituteVariables(String val)
Applies variable substitution to the specified String and returns the new resolved string.
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.