SSIConfigpublic final class SSIConfig extends Object implements SSICommandImplements the Server-side #exec command |
Methods Summary |
---|
public long | process(SSIMediator ssiMediator, java.lang.String commandName, java.lang.String[] paramNames, java.lang.String[] paramValues, java.io.PrintWriter writer)
for (int i = 0; i < paramNames.length; i++) {
String paramName = paramNames[i];
String paramValue = paramValues[i];
String substitutedValue = ssiMediator
.substituteVariables(paramValue);
if (paramName.equalsIgnoreCase("errmsg")) {
ssiMediator.setConfigErrMsg(substitutedValue);
} else if (paramName.equalsIgnoreCase("sizefmt")) {
ssiMediator.setConfigSizeFmt(substitutedValue);
} else if (paramName.equalsIgnoreCase("timefmt")) {
ssiMediator.setConfigTimeFmt(substitutedValue);
} else {
ssiMediator.log("#config--Invalid attribute: " + paramName);
//We need to fetch this value each time, since it may change
// during the
// loop
String configErrMsg = ssiMediator.getConfigErrMsg();
writer.write(configErrMsg);
}
}
// Setting config options doesn't really change the page
return 0;
|
|