public abstract class org.glassfish.grizzly.websockets.WebSocketApplication extends org.glassfish.grizzly.websockets.WebSocketAdapter
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.websockets.WebSocketApplication
super_class: org.glassfish.grizzly.websockets.WebSocketAdapter
{
private final java.util.concurrent.ConcurrentMap<org.glassfish.grizzly.websockets.WebSocket, java.lang.Boolean> sockets;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Lorg/glassfish/grizzly/websockets/WebSocket;Ljava/lang/Boolean;>;
private final java.util.List<org.glassfish.grizzly.websockets.Extension> supportedExtensions;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/glassfish/grizzly/websockets/Extension;>;
private final java.util.List<java.lang.String> supportedProtocols;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.glassfish.grizzly.websockets.WebSocketAdapter.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.glassfish.grizzly.websockets.WebSocketApplication.sockets:Ljava/util/concurrent/ConcurrentMap;
2: aload 0
new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.glassfish.grizzly.websockets.WebSocketApplication.supportedExtensions:Ljava/util/List;
3: aload 0
new java.util.ArrayList
dup
iconst_2
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.glassfish.grizzly.websockets.WebSocketApplication.supportedProtocols:Ljava/util/List;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
public org.glassfish.grizzly.websockets.WebSocket createSocket(org.glassfish.grizzly.websockets.ProtocolHandler, org.glassfish.grizzly.websockets.WebSocketListener[]);
descriptor: (Lorg/glassfish/grizzly/websockets/ProtocolHandler;[Lorg/glassfish/grizzly/websockets/WebSocketListener;)Lorg/glassfish/grizzly/websockets/WebSocket;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aload 2
invokevirtual org.glassfish.grizzly.websockets.WebSocketApplication.createSocket:(Lorg/glassfish/grizzly/websockets/ProtocolHandler;Lorg/glassfish/grizzly/http/HttpRequestPacket;[Lorg/glassfish/grizzly/websockets/WebSocketListener;)Lorg/glassfish/grizzly/websockets/WebSocket;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 handler Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 2 listeners [Lorg/glassfish/grizzly/websockets/WebSocketListener;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
handler
listeners
public org.glassfish.grizzly.websockets.WebSocket createSocket(org.glassfish.grizzly.websockets.ProtocolHandler, org.glassfish.grizzly.http.HttpRequestPacket, org.glassfish.grizzly.websockets.WebSocketListener[]);
descriptor: (Lorg/glassfish/grizzly/websockets/ProtocolHandler;Lorg/glassfish/grizzly/http/HttpRequestPacket;[Lorg/glassfish/grizzly/websockets/WebSocketListener;)Lorg/glassfish/grizzly/websockets/WebSocket;
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.glassfish.grizzly.websockets.DefaultWebSocket
dup
aload 1
aload 2
aload 3
invokespecial org.glassfish.grizzly.websockets.DefaultWebSocket.<init>:(Lorg/glassfish/grizzly/websockets/ProtocolHandler;Lorg/glassfish/grizzly/http/HttpRequestPacket;[Lorg/glassfish/grizzly/websockets/WebSocketListener;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 handler Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 2 requestPacket Lorg/glassfish/grizzly/http/HttpRequestPacket;
0 1 3 listeners [Lorg/glassfish/grizzly/websockets/WebSocketListener;
MethodParameters:
Name Flags
handler final
requestPacket final
listeners final
public void onClose(org.glassfish.grizzly.websockets.WebSocket, org.glassfish.grizzly.websockets.DataFrame);
descriptor: (Lorg/glassfish/grizzly/websockets/WebSocket;Lorg/glassfish/grizzly/websockets/DataFrame;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.WebSocketApplication.remove:(Lorg/glassfish/grizzly/websockets/WebSocket;)Z
pop
1: aload 1
invokeinterface org.glassfish.grizzly.websockets.WebSocket.close:()V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 3 1 socket Lorg/glassfish/grizzly/websockets/WebSocket;
0 3 2 frame Lorg/glassfish/grizzly/websockets/DataFrame;
MethodParameters:
Name Flags
socket
frame
public void onConnect(org.glassfish.grizzly.websockets.WebSocket);
descriptor: (Lorg/glassfish/grizzly/websockets/WebSocket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.WebSocketApplication.add:(Lorg/glassfish/grizzly/websockets/WebSocket;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 2 1 socket Lorg/glassfish/grizzly/websockets/WebSocket;
MethodParameters:
Name Flags
socket
public void onExtensionNegotiation(java.util.List<org.glassfish.grizzly.websockets.Extension>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 extensions Ljava/util/List<Lorg/glassfish/grizzly/websockets/Extension;>;
Signature: (Ljava/util/List<Lorg/glassfish/grizzly/websockets/Extension;>;)V
MethodParameters:
Name Flags
extensions
public final boolean upgrade(org.glassfish.grizzly.http.HttpRequestPacket);
descriptor: (Lorg/glassfish/grizzly/http/HttpRequestPacket;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: ldc "WebSocket"
aload 1
getstatic org.glassfish.grizzly.http.util.Header.Upgrade:Lorg/glassfish/grizzly/http/util/Header;
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getHeader:(Lorg/glassfish/grizzly/http/util/Header;)Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 1
aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.WebSocketApplication.isApplicationRequest:(Lorg/glassfish/grizzly/http/HttpRequestPacket;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 2 1 request Lorg/glassfish/grizzly/http/HttpRequestPacket;
MethodParameters:
Name Flags
request
public boolean isApplicationRequest(org.glassfish.grizzly.http.HttpRequestPacket);
descriptor: (Lorg/glassfish/grizzly/http/HttpRequestPacket;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 request Lorg/glassfish/grizzly/http/HttpRequestPacket;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
request
public java.util.List<org.glassfish.grizzly.websockets.Extension> getSupportedExtensions();
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.WebSocketApplication.supportedExtensions:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
Signature: ()Ljava/util/List<Lorg/glassfish/grizzly/websockets/Extension;>;
public java.util.List<java.lang.String> getSupportedProtocols(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.websockets.WebSocketApplication.supportedProtocols:Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 subProtocol Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
subProtocol
protected java.util.Set<org.glassfish.grizzly.websockets.WebSocket> getWebSockets();
descriptor: ()Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.WebSocketApplication.sockets:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
Signature: ()Ljava/util/Set<Lorg/glassfish/grizzly/websockets/WebSocket;>;
protected boolean add(org.glassfish.grizzly.websockets.WebSocket);
descriptor: (Lorg/glassfish/grizzly/websockets/WebSocket;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.websockets.WebSocketApplication.sockets:Ljava/util/concurrent/ConcurrentMap;
aload 1
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnonnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 2 1 socket Lorg/glassfish/grizzly/websockets/WebSocket;
MethodParameters:
Name Flags
socket
public boolean remove(org.glassfish.grizzly.websockets.WebSocket);
descriptor: (Lorg/glassfish/grizzly/websockets/WebSocket;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.websockets.WebSocketApplication.sockets:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 2 1 socket Lorg/glassfish/grizzly/websockets/WebSocket;
MethodParameters:
Name Flags
socket
protected void handshake(org.glassfish.grizzly.websockets.HandShake);
descriptor: (Lorg/glassfish/grizzly/websockets/HandShake;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 handshake Lorg/glassfish/grizzly/websockets/HandShake;
Exceptions:
throws org.glassfish.grizzly.websockets.HandshakeException
MethodParameters:
Name Flags
handshake
protected boolean onError(org.glassfish.grizzly.websockets.WebSocket, java.lang.Throwable);
descriptor: (Lorg/glassfish/grizzly/websockets/WebSocket;Ljava/lang/Throwable;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 1 1 webSocket Lorg/glassfish/grizzly/websockets/WebSocket;
0 1 2 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
webSocket final
t final
}
SourceFile: "WebSocketApplication.java"