public class CGIServlet extends GenericServlet
| Modifier and Type | Class and Description |
|---|---|
class |
CGIServlet.CgiEnv |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
log |
| Constructor and Description |
|---|
CGIServlet() |
| Modifier and Type | Method and Description |
|---|---|
CGIServlet.CgiEnv |
createEnv() |
void |
service(ServletRequest request,
ServletResponse response)
Handle the request.
|
void |
setExecutable(java.lang.String executable)
Sets an executable to run the script.
|
void |
setIgnoreExitCode(boolean ignoreExitCode)
If true, do not treat a non-zero exit code as an error, default false.
|
void |
setStderrIsException(boolean isException) |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log, toStringpublic void setExecutable(java.lang.String executable)
public void setStderrIsException(boolean isException)
public void setIgnoreExitCode(boolean ignoreExitCode)
public CGIServlet.CgiEnv createEnv()
public void service(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
request - request information. Normally servlets will cast this
to HttpServletRequestresponse - response information. Normally servlets will cast this
to HttpServletRequestServletExceptionjava.io.IOException