com.evermind.server.http
Class CGIServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.evermind.server.http.CGIServlet
- All Implemented Interfaces:
- javax.servlet.Config, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class CGIServlet
- extends javax.servlet.http.HttpServlet
Servlet used to execute legacy CGI applications.
Home directory will not be set in 1.2 due to 1.2 API limitations, the directory the Orion process was launched from will be used instead.
The parameters are:
interpreter - Optional parameter that designates an interpreter to launch, for instance "perl.exe". If this parameter isnt defined then the files themselves are executed (the standard way).
root - Optional path to the executable files. An example is "WEB-INF/cgi-bin" if your files reside in the WEB-INF/cgi-bin folder. If this parameter isnt specified then the physical
(ie same as for resource files, .html .jsp etc) directory is used.
environment - Environment settings separated by ',' - for instance: "path=C:\test,another=x".
commaSeparateMultipleValues - 'true' or 'false', the default is 'false': whether or not to comma-separate multiple values of the same name (instead of supplying them in the usual POST/query format), useful for certain engines that expect that syntax, for instance cold fusion.
- See Also:
- Serialized Form
|
Method Summary |
void |
init(javax.servlet.ServletConfig config)
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CGI_SPECIFICATION
public static final java.lang.String CGI_SPECIFICATION
CGIServlet
public CGIServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Overrides:
init in class javax.servlet.GenericServlet
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException