class testcgi extends CGI
| Constructor and Description |
|---|
testcgi() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cgi(Map POST,
Map GET,
Map ENV,
Map COOKIE,
String[] params)
Override this method in your CGI program.
|
static void |
main(String[] args) |
doCGI, flush, getOutputStream, header, out, out, setcookie, setcookie, setErrorHandlerprotected void cgi(Map POST, Map GET, Map ENV, Map COOKIE, String[] params) throws Exception
CGIcgi in class CGIPOST - A Map of variable =$gt; value for the POST variables.GET - A Map of variable =$gt; value for the GET variables.ENV - A Map of variable =$gt; value for the Webserver environment variables.COOKIE - A Map of variable =$gt; value for the browser-sent cookies.params - An array of parameters passed to the CGI (GET with no variable assignments)Exception - You can throw anything, it will be caught by the error handler.public static void main(String[] args)
Copyright © 2015. All Rights Reserved.