final class sun.rmi.transport.proxy.CGITryHostnameCommand implements sun.rmi.transport.proxy.CGICommandHandler
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.rmi.transport.proxy.CGITryHostnameCommand
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // sun.rmi.transport.proxy.CGITryHostnameCommand this
0: .line 381
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // sun.rmi.transport.proxy.CGITryHostnameCommand this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/transport/proxy/CGITryHostnameCommand;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // sun.rmi.transport.proxy.CGITryHostnameCommand this
0: .line 384
ldc "tryhostname"
areturn
end local 0 // sun.rmi.transport.proxy.CGITryHostnameCommand this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/transport/proxy/CGITryHostnameCommand;
public void execute(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 // sun.rmi.transport.proxy.CGITryHostnameCommand this
start local 1 // java.lang.String param
0: .line 389
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Status: 200 OK"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: .line 390
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Content-type: text/html"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: .line 391
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc ""
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: .line 392
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "<HTML><HEAD><TITLE>Java RMI Server Hostname Info</TITLE></HEAD><BODY>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: .line 396
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "<H1>Java RMI Server Hostname Info</H1>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: .line 397
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "<H2>Local host name available to Java VM:</H2>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: .line 398
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "<P>InetAddress.getLocalHost().getHostName()"
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
7: .line 400
invokestatic java.net.InetAddress.getLocalHost:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
astore 2 /* localHostName */
start local 2 // java.lang.String localHostName
8: .line 402
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc " = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2 /* localHostName */
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
end local 2 // java.lang.String localHostName
9: .line 403
goto 12
StackMap locals:
StackMap stack: java.net.UnknownHostException
10: pop
11: .line 404
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " threw java.net.UnknownHostException"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: .line 407
StackMap locals:
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "<H2>Server host information obtained through CGI interface from HTTP server:</H2>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: .line 408
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "<P>SERVER_NAME = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.rmi.transport.proxy.CGIHandler.ServerName:Ljava/lang/String;
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
14: .line 409
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "<P>SERVER_PORT = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.rmi.transport.proxy.CGIHandler.ServerPort:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: .line 410
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "</BODY></HTML>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
16: .line 411
return
end local 1 // java.lang.String param
end local 0 // sun.rmi.transport.proxy.CGITryHostnameCommand this
LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/rmi/transport/proxy/CGITryHostnameCommand;
0 17 1 param Ljava/lang/String;
8 9 2 localHostName Ljava/lang/String;
Exception table:
from to target type
7 9 10 Class java.net.UnknownHostException
MethodParameters:
Name Flags
param
}
SourceFile: "CGIHandler.java"