public class org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake extends org.glassfish.grizzly.websockets.HandShake
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake
super_class: org.glassfish.grizzly.websockets.HandShake
{
private final org.glassfish.grizzly.websockets.SecKey secKey;
descriptor: Lorg/glassfish/grizzly/websockets/SecKey;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<java.lang.String> enabledExtensions;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private final java.util.List<java.lang.String> enabledProtocols;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
public void <init>(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.glassfish.grizzly.websockets.HandShake.<init>:(Ljava/net/URI;)V
1: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.enabledExtensions:Ljava/util/List;
2: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.enabledProtocols:Ljava/util/List;
3: aload 0
new org.glassfish.grizzly.websockets.SecKey
dup
invokespecial org.glassfish.grizzly.websockets.SecKey.<init>:()V
putfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.secKey:Lorg/glassfish/grizzly/websockets/SecKey;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
0 5 1 uri Ljava/net/URI;
MethodParameters:
Name Flags
uri
public void <init>(org.glassfish.grizzly.http.HttpRequestPacket);
descriptor: (Lorg/glassfish/grizzly/http/HttpRequestPacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.glassfish.grizzly.websockets.HandShake.<init>:(Lorg/glassfish/grizzly/http/HttpRequestPacket;)V
1: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.enabledExtensions:Ljava/util/List;
2: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.enabledProtocols:Ljava/util/List;
3: aload 1
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getHeaders:()Lorg/glassfish/grizzly/http/util/MimeHeaders;
astore 2
start local 2 4: aload 2
ldc "Sec-WebSocket-Extensions"
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getHeader:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 5: aload 3
ifnull 7
6: aload 0
aload 0
aload 3
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.parseExtensionsHeader:(Ljava/lang/String;)Ljava/util/List;
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.setExtensions:(Ljava/util/List;)V
7: StackMap locals: org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake org.glassfish.grizzly.http.HttpRequestPacket org.glassfish.grizzly.http.util.MimeHeaders java.lang.String
StackMap stack:
aload 0
new org.glassfish.grizzly.websockets.SecKey
dup
aload 2
ldc "Sec-WebSocket-Key"
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getHeader:(Ljava/lang/String;)Ljava/lang/String;
invokespecial org.glassfish.grizzly.websockets.SecKey.<init>:(Ljava/lang/String;)V
invokestatic org.glassfish.grizzly.websockets.SecKey.generateServerKey:(Lorg/glassfish/grizzly/websockets/SecKey;)Lorg/glassfish/grizzly/websockets/SecKey;
putfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.secKey:Lorg/glassfish/grizzly/websockets/SecKey;
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
0 9 1 request Lorg/glassfish/grizzly/http/HttpRequestPacket;
4 9 2 mimeHeaders Lorg/glassfish/grizzly/http/util/MimeHeaders;
5 9 3 header Ljava/lang/String;
MethodParameters:
Name Flags
request
protected int getVersion();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 13
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
public void setHeaders(org.glassfish.grizzly.http.HttpResponsePacket);
descriptor: (Lorg/glassfish/grizzly/http/HttpResponsePacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Switching Protocols"
invokevirtual org.glassfish.grizzly.http.HttpResponsePacket.setReasonPhrase:(Ljava/lang/String;)V
1: aload 1
ldc "Sec-WebSocket-Accept"
aload 0
getfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.secKey:Lorg/glassfish/grizzly/websockets/SecKey;
invokevirtual org.glassfish.grizzly.websockets.SecKey.getSecKey:()Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.HttpResponsePacket.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.getEnabledExtensions:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 4
3: aload 1
ldc "Sec-WebSocket-Extensions"
aload 0
aload 0
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.getSubProtocol:()Ljava/util/List;
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.join:(Ljava/util/List;)Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.HttpResponsePacket.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
0 5 1 response Lorg/glassfish/grizzly/http/HttpResponsePacket;
MethodParameters:
Name Flags
response
public org.glassfish.grizzly.http.HttpContent composeHeaders();
descriptor: ()Lorg/glassfish/grizzly/http/HttpContent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokespecial org.glassfish.grizzly.websockets.HandShake.composeHeaders:()Lorg/glassfish/grizzly/http/HttpContent;
astore 1
start local 1 1: aload 1
invokevirtual org.glassfish.grizzly.http.HttpContent.getHttpHeader:()Lorg/glassfish/grizzly/http/HttpHeader;
astore 2
start local 2 2: aload 2
ldc "Sec-WebSocket-Key"
aload 0
getfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.secKey:Lorg/glassfish/grizzly/websockets/SecKey;
invokevirtual org.glassfish.grizzly.websockets.SecKey.toString:()Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.HttpHeader.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
3: aload 2
ldc "Sec-WebSocket-Origin"
aload 0
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.getOrigin:()Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.HttpHeader.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
4: aload 2
ldc "Sec-WebSocket-Version"
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.getVersion:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.HttpHeader.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
5: aload 0
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.getExtensions:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 7
6: aload 2
ldc "Sec-WebSocket-Extensions"
aload 0
aload 0
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.getExtensions:()Ljava/util/List;
invokevirtual org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.joinExtensions:(Ljava/util/List;)Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.HttpHeader.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
7: StackMap locals: org.glassfish.grizzly.http.HttpContent org.glassfish.grizzly.http.HttpHeader
StackMap stack:
aload 2
invokevirtual org.glassfish.grizzly.http.HttpHeader.getHeaders:()Lorg/glassfish/grizzly/http/util/MimeHeaders;
ldc "Sec-WebSocket-Origin"
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.getHeader:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 8: aload 2
invokevirtual org.glassfish.grizzly.http.HttpHeader.getHeaders:()Lorg/glassfish/grizzly/http/util/MimeHeaders;
ldc "Sec-WebSocket-Origin"
invokevirtual org.glassfish.grizzly.http.util.MimeHeaders.removeHeader:(Ljava/lang/String;)V
9: aload 2
ldc "Origin"
aload 3
invokevirtual org.glassfish.grizzly.http.HttpHeader.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
10: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
1 11 1 content Lorg/glassfish/grizzly/http/HttpContent;
2 11 2 header Lorg/glassfish/grizzly/http/HttpHeader;
8 11 3 headerValue Ljava/lang/String;
public void validateServerResponse(org.glassfish.grizzly.http.HttpResponsePacket);
descriptor: (Lorg/glassfish/grizzly/http/HttpResponsePacket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.glassfish.grizzly.websockets.HandShake.validateServerResponse:(Lorg/glassfish/grizzly/http/HttpResponsePacket;)V
1: aload 0
getfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.secKey:Lorg/glassfish/grizzly/websockets/SecKey;
aload 1
ldc "Sec-WebSocket-Accept"
invokevirtual org.glassfish.grizzly.http.HttpResponsePacket.getHeader:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual org.glassfish.grizzly.websockets.SecKey.validateServerKey:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
0 3 1 headers Lorg/glassfish/grizzly/http/HttpResponsePacket;
Exceptions:
throws org.glassfish.grizzly.websockets.HandshakeException
MethodParameters:
Name Flags
headers final
public java.util.List<java.lang.String> getEnabledExtensions();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.enabledExtensions:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public java.util.List<java.lang.String> getEnabledProtocols();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.rfc6455.RFC6455HandShake.enabledProtocols:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/rfc6455/RFC6455HandShake;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
}
SourceFile: "RFC6455HandShake.java"