Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.catalina.ssi
Class SSIMediator

    java.lang.Object
      org.apache.catalina.ssi.SSIMediator

public class SSIMediator
extends java.lang.Object

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

Version:
  $Revision: 1.3.2.1 $, $Date: 2004/09/01 16:31:01 $
Author:
  Bip Thelin, Amy Roh, Paul Speed, Dan Sandberg

Field Summary
`protected java.lang.String` | `className`
`protected org.apache.catalina.ssi.SSIConditionalState` | `conditionalState`
`protected java.lang.String` | `configErrMsg`
`protected java.lang.String` | `configSizeFmt`
`protected java.lang.String` | `configTimeFmt`
`protected int` | `debug`
`protected static java.lang.String` | `DEFAULT_CONFIG_ERR_MSG`
`protected static java.lang.String` | `DEFAULT_CONFIG_SIZE_FMT`
`protected static java.lang.String` | `DEFAULT_CONFIG_TIME_FMT`
`protected java.util.Date` | `lastModifiedDate`
`protected SSIExternalResolver` | `ssiExternalResolver`
`protected Strftime` | `strftime`
`protected static URLEncoder` | `urlEncoder`

Constructor Summary
`SSIMediator(SSIExternalResolver ssiExternalResolver, java.util.Date lastModifiedDate, int debug)`

Method Summary
`protected java.lang.String` | `encode(java.lang.String value, java.lang.String encoding)`
`protected java.lang.String` | `formatDate(java.util.Date date, java.util.TimeZone timeZone)`
`org.apache.catalina.ssi.SSIConditionalState` | `getConditionalState()`
`java.lang.String` | `getConfigErrMsg()`
`java.lang.String` | `getConfigSizeFmt()`
`java.lang.String` | `getConfigTimeFmt()`
`long` | `getFileLastModified(java.lang.String path, boolean virtual)`
`long` | `getFileSize(java.lang.String path, boolean virtual)`
`java.lang.String` | `getFileText(java.lang.String path, boolean virtual)`
`java.util.Collection` | `getVariableNames()`
`java.lang.String` | `getVariableValue(java.lang.String variableName)`
`java.lang.String` | `getVariableValue(java.lang.String variableName, java.lang.String encoding)`
`protected boolean` | `isNameReserved(java.lang.String name)`
`void` | `log(java.lang.String message)`
`void` | `log(java.lang.String message, java.lang.Throwable throwable)`
`void` | `setConfigErrMsg(java.lang.String configErrMsg)`
`void` | `setConfigSizeFmt(java.lang.String configSizeFmt)`
`void` | `setConfigTimeFmt(java.lang.String configTimeFmt)`
`void` | `setConfigTimeFmt(java.lang.String configTimeFmt, boolean fromConstructor)`
`protected void` | `setDateVariables(boolean fromConstructor)`
`void` | `setVariableValue(java.lang.String variableName, java.lang.String variableValue)`
`java.lang.String` | `substituteVariables(java.lang.String val)` Applies variable substitution to the specified String and returns the new resolved string.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_CONFIG_ERR_MSG

    protected static final java.lang.String DEFAULT_CONFIG_ERR_MSG

See Also:
  Constant Field Values

### DEFAULT_CONFIG_TIME_FMT

    protected static final java.lang.String DEFAULT_CONFIG_TIME_FMT

See Also:
  Constant Field Values

### DEFAULT_CONFIG_SIZE_FMT

    protected static final java.lang.String DEFAULT_CONFIG_SIZE_FMT

See Also:
  Constant Field Values

### urlEncoder

    protected static URLEncoder urlEncoder

### configErrMsg

    protected java.lang.String configErrMsg

### configTimeFmt

    protected java.lang.String configTimeFmt

### configSizeFmt

    protected java.lang.String configSizeFmt

### className

    protected java.lang.String className

### ssiExternalResolver

    protected SSIExternalResolver ssiExternalResolver

### lastModifiedDate

    protected java.util.Date lastModifiedDate

### debug

    protected int debug

### strftime

    protected Strftime strftime

### conditionalState

    protected org.apache.catalina.ssi.SSIConditionalState conditionalState

Constructor Detail

### SSIMediator

    public SSIMediator(SSIExternalResolver ssiExternalResolver,
                       java.util.Date lastModifiedDate,
                       int debug)

Method Detail

### setConfigErrMsg

    public void setConfigErrMsg(java.lang.String configErrMsg)

### setConfigTimeFmt

    public void setConfigTimeFmt(java.lang.String configTimeFmt)

### setConfigTimeFmt

    public void setConfigTimeFmt(java.lang.String configTimeFmt,
                                 boolean fromConstructor)

### setConfigSizeFmt

    public void setConfigSizeFmt(java.lang.String configSizeFmt)

### getConfigErrMsg

    public java.lang.String getConfigErrMsg()

### getConfigTimeFmt

    public java.lang.String getConfigTimeFmt()

### getConfigSizeFmt

    public java.lang.String getConfigSizeFmt()

### getConditionalState

    public org.apache.catalina.ssi.SSIConditionalState getConditionalState()

### getVariableNames

    public java.util.Collection getVariableNames()

### getFileSize

    public long getFileSize(java.lang.String path,
                            boolean virtual)
                     throws java.io.IOException

  Throws:
    `java.io.IOException`

### getFileLastModified

    public long getFileLastModified(java.lang.String path,
                                    boolean virtual)
                             throws java.io.IOException

  Throws:
    `java.io.IOException`

### getFileText

    public java.lang.String getFileText(java.lang.String path,
                                        boolean virtual)
                                 throws java.io.IOException

  Throws:
    `java.io.IOException`

### isNameReserved

    protected boolean isNameReserved(java.lang.String name)

### getVariableValue

    public java.lang.String getVariableValue(java.lang.String variableName)

### setVariableValue

    public void setVariableValue(java.lang.String variableName,
                                 java.lang.String variableValue)

### getVariableValue

    public java.lang.String getVariableValue(java.lang.String variableName,
                                             java.lang.String encoding)

### substituteVariables

    public java.lang.String substituteVariables(java.lang.String val)

  Applies variable substitution to the specified String and returns the new resolved string.

### formatDate

    protected java.lang.String formatDate(java.util.Date date,
                                          java.util.TimeZone timeZone)

### encode

    protected java.lang.String encode(java.lang.String value,
                                      java.lang.String encoding)

### log

    public void log(java.lang.String message)

### log

    public void log(java.lang.String message,
                    java.lang.Throwable throwable)

### setDateVariables

    protected void setDateVariables(boolean fromConstructor)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.