se.entra.phantom.server.http
Interface CgiHttpResourceInterface

All Known Implementing Classes:
FileDownloadCGI

public interface CgiHttpResourceInterface

This interface is implemented by classes acting as "CGI programs" for the NetPhantom Web Server.

This interface is intended to handle binary resources and is extended by the HtmlResourceInterface.


Method Summary
 HttpResource performAction(HttpSession session)
          This method should return an HttpResource instance with the document that should be sent to the client.
 

Method Detail

performAction

HttpResource performAction(HttpSession session)
                           throws IOException
This method should return an HttpResource instance with the document that should be sent to the client.

The current directory of the CGI for the client agent is defined in the HttpSession class instance as the resource requested without the "/name.cgi" text.

Throws:
IOException - for IO errors.


Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.