java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.enhydra.servlet.servlets.CGIServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class CGIServlet
- extends javax.servlet.http.HttpServlet
This Servlet is for the purpose of executing a CGI program that resides on
the system. In order to use this servlet in the Multiserver please
remember to specify the fully qualified classname
org.enhydra.servlet.servlets.CGIServlet in the Classname field and specify
the directory of the CGI to run in the DocRoot field.
- Version:
- $Revision: 1.4.2.2.2.1 $
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CGIServlet
public CGIServlet()
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overide the service method of HttpServelet. This method executes a CGI
program that is specified on the URL line of a browser.
isAuthorized
private boolean isAuthorized(java.lang.String path)
- Test if a path is authorized. Currently the only limitations
are that the pathname must not contain "..".