public final class sun.rmi.transport.proxy.CGIHandler
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: sun.rmi.transport.proxy.CGIHandler
  super_class: java.lang.Object
{
  static int ContentLength;
    descriptor: I
    flags: (0x0008) ACC_STATIC

  static java.lang.String QueryString;
    descriptor: Ljava/lang/String;
    flags: (0x0008) ACC_STATIC

  static java.lang.String RequestMethod;
    descriptor: Ljava/lang/String;
    flags: (0x0008) ACC_STATIC

  static java.lang.String ServerName;
    descriptor: Ljava/lang/String;
    flags: (0x0008) ACC_STATIC

  static int ServerPort;
    descriptor: I
    flags: (0x0008) ACC_STATIC

  private static sun.rmi.transport.proxy.CGICommandHandler[] commands;
    descriptor: [Lsun/rmi/transport/proxy/CGICommandHandler;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC

  private static java.util.Hashtable<java.lang.String, sun.rmi.transport.proxy.CGICommandHandler> commandLookup;
    descriptor: Ljava/util/Hashtable;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Signature: Ljava/util/Hashtable<Ljava/lang/String;Lsun/rmi/transport/proxy/CGICommandHandler;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=5, locals=1, args_size=0
         0: .line 103
            new sun.rmi.transport.proxy.CGIHandler$1
            dup
            invokespecial sun.rmi.transport.proxy.CGIHandler$1.<init>:()V
         1: .line 102
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
            pop
         2: .line 117
            iconst_4
            anewarray sun.rmi.transport.proxy.CGICommandHandler
            dup
            iconst_0
         3: .line 118
            new sun.rmi.transport.proxy.CGIForwardCommand
            dup
            invokespecial sun.rmi.transport.proxy.CGIForwardCommand.<init>:()V
            aastore
            dup
            iconst_1
         4: .line 119
            new sun.rmi.transport.proxy.CGIGethostnameCommand
            dup
            invokespecial sun.rmi.transport.proxy.CGIGethostnameCommand.<init>:()V
            aastore
            dup
            iconst_2
         5: .line 120
            new sun.rmi.transport.proxy.CGIPingCommand
            dup
            invokespecial sun.rmi.transport.proxy.CGIPingCommand.<init>:()V
            aastore
            dup
            iconst_3
         6: .line 121
            new sun.rmi.transport.proxy.CGITryHostnameCommand
            dup
            invokespecial sun.rmi.transport.proxy.CGITryHostnameCommand.<init>:()V
            aastore
         7: .line 117
            putstatic sun.rmi.transport.proxy.CGIHandler.commands:[Lsun/rmi/transport/proxy/CGICommandHandler;
         8: .line 127
            new java.util.Hashtable
            dup
            invokespecial java.util.Hashtable.<init>:()V
            putstatic sun.rmi.transport.proxy.CGIHandler.commandLookup:Ljava/util/Hashtable;
         9: .line 128
            iconst_0
            istore 0 /* i */
        start local 0 // int i
        10: goto 13
        11: .line 129
      StackMap locals: int
      StackMap stack:
            getstatic sun.rmi.transport.proxy.CGIHandler.commandLookup:Ljava/util/Hashtable;
            getstatic sun.rmi.transport.proxy.CGIHandler.commands:[Lsun/rmi/transport/proxy/CGICommandHandler;
            iload 0 /* i */
            aaload
            invokeinterface sun.rmi.transport.proxy.CGICommandHandler.getName:()Ljava/lang/String;
            getstatic sun.rmi.transport.proxy.CGIHandler.commands:[Lsun/rmi/transport/proxy/CGICommandHandler;
            iload 0 /* i */
            aaload
            invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        12: .line 128
            iinc 0 /* i */ 1
      StackMap locals:
      StackMap stack:
        13: iload 0 /* i */
            getstatic sun.rmi.transport.proxy.CGIHandler.commands:[Lsun/rmi/transport/proxy/CGICommandHandler;
            arraylength
            if_icmplt 11
        end local 0 // int i
        14: .line 130
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
           10   14     0     i  I

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.rmi.transport.proxy.CGIHandler this
         0: .line 133
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // sun.rmi.transport.proxy.CGIHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/rmi/transport/proxy/CGIHandler;

  public static void main(java.lang.String[]);
    descriptor: ([Ljava/lang/String;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=6, args_size=1
        start local 0 // java.lang.String[] args
         0: .line 144
            getstatic sun.rmi.transport.proxy.CGIHandler.QueryString:Ljava/lang/String;
            ldc "="
            invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
            istore 3 /* delim */
        start local 3 // int delim
         1: .line 145
            iload 3 /* delim */
            iconst_m1
            if_icmpne 5
         2: .line 146
            getstatic sun.rmi.transport.proxy.CGIHandler.QueryString:Ljava/lang/String;
            astore 1 /* command */
        start local 1 // java.lang.String command
         3: .line 147
            ldc ""
            astore 2 /* param */
        start local 2 // java.lang.String param
         4: .line 148
            goto 7
        end local 2 // java.lang.String param
        end local 1 // java.lang.String command
         5: .line 150
      StackMap locals: java.lang.String[] top top int
      StackMap stack:
            getstatic sun.rmi.transport.proxy.CGIHandler.QueryString:Ljava/lang/String;
            iconst_0
            iload 3 /* delim */
            invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
            astore 1 /* command */
        start local 1 // java.lang.String command
         6: .line 151
            getstatic sun.rmi.transport.proxy.CGIHandler.QueryString:Ljava/lang/String;
            iload 3 /* delim */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 2 /* param */
        start local 2 // java.lang.String param
         7: .line 154
      StackMap locals: java.lang.String[] java.lang.String java.lang.String int
      StackMap stack:
            getstatic sun.rmi.transport.proxy.CGIHandler.commandLookup:Ljava/util/Hashtable;
            aload 1 /* command */
            invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.rmi.transport.proxy.CGICommandHandler
         8: .line 153
            astore 4 /* handler */
        start local 4 // sun.rmi.transport.proxy.CGICommandHandler handler
         9: .line 155
            aload 4 /* handler */
            ifnull 20
        10: .line 157
            aload 4 /* handler */
            aload 2 /* param */
            invokeinterface sun.rmi.transport.proxy.CGICommandHandler.execute:(Ljava/lang/String;)V
        11: .line 158
            goto 25
      StackMap locals: java.lang.String[] java.lang.String java.lang.String int sun.rmi.transport.proxy.CGICommandHandler
      StackMap stack: sun.rmi.transport.proxy.CGIClientException
        12: astore 5 /* e */
        start local 5 // sun.rmi.transport.proxy.CGIClientException e
        13: .line 159
            aload 5 /* e */
            invokevirtual sun.rmi.transport.proxy.CGIClientException.printStackTrace:()V
        14: .line 160
            aload 5 /* e */
            invokevirtual sun.rmi.transport.proxy.CGIClientException.getMessage:()Ljava/lang/String;
            invokestatic sun.rmi.transport.proxy.CGIHandler.returnClientError:(Ljava/lang/String;)V
        end local 5 // sun.rmi.transport.proxy.CGIClientException e
        15: goto 25
        16: .line 161
      StackMap locals:
      StackMap stack: sun.rmi.transport.proxy.CGIServerException
            astore 5 /* e */
        start local 5 // sun.rmi.transport.proxy.CGIServerException e
        17: .line 162
            aload 5 /* e */
            invokevirtual sun.rmi.transport.proxy.CGIServerException.printStackTrace:()V
        18: .line 163
            aload 5 /* e */
            invokevirtual sun.rmi.transport.proxy.CGIServerException.getMessage:()Ljava/lang/String;
            invokestatic sun.rmi.transport.proxy.CGIHandler.returnServerError:(Ljava/lang/String;)V
        end local 5 // sun.rmi.transport.proxy.CGIServerException e
        19: .line 164
            goto 25
        20: .line 166
      StackMap locals:
      StackMap stack:
            ldc "invalid command."
            invokestatic sun.rmi.transport.proxy.CGIHandler.returnClientError:(Ljava/lang/String;)V
        end local 4 // sun.rmi.transport.proxy.CGICommandHandler handler
        end local 3 // int delim
        end local 2 // java.lang.String param
        end local 1 // java.lang.String command
        21: .line 167
            goto 25
      StackMap locals: java.lang.String[]
      StackMap stack: java.lang.Exception
        22: astore 1 /* e */
        start local 1 // java.lang.Exception e
        23: .line 168
            aload 1 /* e */
            invokevirtual java.lang.Exception.printStackTrace:()V
        24: .line 169
            new java.lang.StringBuilder
            dup
            ldc "internal error: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* e */
            invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic sun.rmi.transport.proxy.CGIHandler.returnServerError:(Ljava/lang/String;)V
        end local 1 // java.lang.Exception e
        25: .line 171
      StackMap locals:
      StackMap stack:
            iconst_0
            invokestatic java.lang.System.exit:(I)V
        26: .line 172
            return
        end local 0 // java.lang.String[] args
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   27     0     args  [Ljava/lang/String;
            3    5     1  command  Ljava/lang/String;
            6   21     1  command  Ljava/lang/String;
            4    5     2    param  Ljava/lang/String;
            7   21     2    param  Ljava/lang/String;
            1   21     3    delim  I
            9   21     4  handler  Lsun/rmi/transport/proxy/CGICommandHandler;
           13   15     5        e  Lsun/rmi/transport/proxy/CGIClientException;
           17   19     5        e  Lsun/rmi/transport/proxy/CGIServerException;
           23   25     1        e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
          10    11      12  Class sun.rmi.transport.proxy.CGIClientException
          10    11      16  Class sun.rmi.transport.proxy.CGIServerException
           0    21      22  Class java.lang.Exception
    MethodParameters:
      Name  Flags
      args  

  private static void returnClientError(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // java.lang.String message
         0: .line 180
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Status: 400 Bad Request: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* message */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 181
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Content-type: text/html"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         2: .line 182
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ""
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         3: .line 183
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "<HTML><HEAD><TITLE>Java RMI Client Error</TITLE></HEAD><BODY>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         4: .line 187
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "<H1>Java RMI Client Error</H1>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         5: .line 188
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ""
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         6: .line 189
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            aload 0 /* message */
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         7: .line 190
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "</BODY></HTML>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         8: .line 191
            iconst_1
            invokestatic java.lang.System.exit:(I)V
         9: .line 192
            return
        end local 0 // java.lang.String message
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0  message  Ljava/lang/String;
    MethodParameters:
         Name  Flags
      message  

  private static void returnServerError(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // java.lang.String message
         0: .line 200
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            new java.lang.StringBuilder
            dup
            ldc "Status: 500 Server Error: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* message */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         1: .line 201
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "Content-type: text/html"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         2: .line 202
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ""
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         3: .line 203
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "<HTML><HEAD><TITLE>Java RMI Server Error</TITLE></HEAD><BODY>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         4: .line 207
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "<H1>Java RMI Server Error</H1>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         5: .line 208
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc ""
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         6: .line 209
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            aload 0 /* message */
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         7: .line 210
            getstatic java.lang.System.out:Ljava/io/PrintStream;
            ldc "</BODY></HTML>"
            invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
         8: .line 211
            iconst_1
            invokestatic java.lang.System.exit:(I)V
         9: .line 212
            return
        end local 0 // java.lang.String message
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0  message  Ljava/lang/String;
    MethodParameters:
         Name  Flags
      message  
}
SourceFile: "CGIHandler.java"
NestMembers:
  sun.rmi.transport.proxy.CGIHandler$1
InnerClasses:
  sun.rmi.transport.proxy.CGIHandler$1