Listing of Source cgi/IncludeCgiPrintInterface.java
package se.entra.phantom.server.http;

import java.io.IOException;
import java.io.PrintWriter;
import org.w3c.dom.Element;

/**
 * This interface is implemented by classes acting as "CGI includes" in an HTML
 * document for the NetPhantom Web Server.
 */
public interface IncludeCgiPrintInterface
{
  /**
   * This method should print an HTML document to the <code>printWriter</code>.
   * The current directory of the CGI for the client agent is defined in the
   * <code>HttpSession</code> class instance.
   *
   * @throws  IOException  for IO errors.
   */
  public abstract void performAction(HttpSession session,
                                     HttpResource resource,
                                     Element element,
                                     PrintWriter printWriter) throws IOException;
}