01: /*
02: * Copyright 1999,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.apache.catalina.ssi;
17:
18: import java.io.PrintWriter;
19:
20: /**
21: * The interface that all SSI commands ( SSIEcho, SSIInclude, ...) must implement.
22: *
23: * @author Bip Thelin
24: * @author Dan Sandberg
25: * @version $Revision: 1.3 $, $Date: 2004/02/27 14:58:47 $
26: *
27: */
28: public interface SSICommand {
29: /**
30: * Write the output of the command to the writer.
31: *
32: * @param ssiMediator the ssi mediator
33: * @param paramNames The parameter names
34: * @param paramValues The parameter values
35: * @param writer the writer to output to
36: * @throws SSIStopProcessingException if SSI processing should be aborted
37: */
38: public void process(SSIMediator ssiMediator, String[] paramNames,
39: String[] paramValues, PrintWriter writer)
40: throws SSIStopProcessingException;
41: }
|