< prev index next >

src/java.rmi/share/classes/sun/rmi/transport/proxy/CGIHandler.java

Print this page




  64  * CGICommandHandler is the interface to an object that handles a
  65  * particular supported command.
  66  */
  67 interface CGICommandHandler {
  68 
  69     /**
  70      * Return the string form of the command
  71      * to be recognized in the query string.
  72      */
  73     public String getName();
  74 
  75     /**
  76      * Execute the command with the given string as parameter.
  77      */
  78     public void execute(String param) throws CGIClientException, CGIServerException;
  79 }
  80 
  81 /**
  82  * The CGIHandler class contains methods for executing as a CGI program.
  83  * The main function interprets the query string as a command of the form
  84  * "<command>=<parameters>".
  85  *
  86  * This class depends on the CGI 1.0 environment variables being set as
  87  * properties of the same name in this Java VM.
  88  *
  89  * All data and methods of this class are static because they are specific
  90  * to this particular CGI process.
  91  */
  92 public final class CGIHandler {
  93 
  94     /* get CGI parameters that we need */
  95     static int ContentLength;
  96     static String QueryString;
  97     static String RequestMethod;
  98     static String ServerName;
  99     static int ServerPort;
 100 
 101     static {
 102         java.security.AccessController.doPrivileged(
 103             new java.security.PrivilegedAction<Void>() {
 104             public Void run() {




  64  * CGICommandHandler is the interface to an object that handles a
  65  * particular supported command.
  66  */
  67 interface CGICommandHandler {
  68 
  69     /**
  70      * Return the string form of the command
  71      * to be recognized in the query string.
  72      */
  73     public String getName();
  74 
  75     /**
  76      * Execute the command with the given string as parameter.
  77      */
  78     public void execute(String param) throws CGIClientException, CGIServerException;
  79 }
  80 
  81 /**
  82  * The CGIHandler class contains methods for executing as a CGI program.
  83  * The main function interprets the query string as a command of the form
  84  * "{@code <command>=<parameters>}".
  85  *
  86  * This class depends on the CGI 1.0 environment variables being set as
  87  * properties of the same name in this Java VM.
  88  *
  89  * All data and methods of this class are static because they are specific
  90  * to this particular CGI process.
  91  */
  92 public final class CGIHandler {
  93 
  94     /* get CGI parameters that we need */
  95     static int ContentLength;
  96     static String QueryString;
  97     static String RequestMethod;
  98     static String ServerName;
  99     static int ServerPort;
 100 
 101     static {
 102         java.security.AccessController.doPrivileged(
 103             new java.security.PrivilegedAction<Void>() {
 104             public Void run() {


< prev index next >