public abstract class org.glassfish.grizzly.websockets.ProtocolHandler
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.glassfish.grizzly.websockets.ProtocolHandler
super_class: java.lang.Object
{
protected org.glassfish.grizzly.Connection connection;
descriptor: Lorg/glassfish/grizzly/Connection;
flags: (0x0004) ACC_PROTECTED
private org.glassfish.grizzly.websockets.WebSocket webSocket;
descriptor: Lorg/glassfish/grizzly/websockets/WebSocket;
flags: (0x0002) ACC_PRIVATE
protected byte inFragmentedType;
descriptor: B
flags: (0x0004) ACC_PROTECTED
protected byte outFragmentedType;
descriptor: B
flags: (0x0004) ACC_PROTECTED
protected final boolean maskData;
descriptor: Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected org.glassfish.grizzly.filterchain.FilterChainContext ctx;
descriptor: Lorg/glassfish/grizzly/filterchain/FilterChainContext;
flags: (0x0004) ACC_PROTECTED
protected boolean processingFragment;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected final java.nio.charset.Charset utf8;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.nio.charset.CharsetDecoder currentDecoder;
descriptor: Ljava/nio/charset/CharsetDecoder;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected java.nio.ByteBuffer remainder;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0004) ACC_PROTECTED
protected org.glassfish.grizzly.websockets.WebSocketMappingData mappingData;
descriptor: Lorg/glassfish/grizzly/websockets/WebSocketMappingData;
flags: (0x0004) ACC_PROTECTED
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET:Ljava/nio/charset/Charset;
putfield org.glassfish.grizzly.websockets.ProtocolHandler.utf8:Ljava/nio/charset/Charset;
2: aload 0
aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.utf8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
putfield org.glassfish.grizzly.websockets.ProtocolHandler.currentDecoder:Ljava/nio/charset/CharsetDecoder;
3: aload 0
iload 1
putfield org.glassfish.grizzly.websockets.ProtocolHandler.maskData:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 5 1 maskData Z
MethodParameters:
Name Flags
maskData
public org.glassfish.grizzly.websockets.HandShake handshake(org.glassfish.grizzly.filterchain.FilterChainContext, org.glassfish.grizzly.websockets.WebSocketApplication, org.glassfish.grizzly.http.HttpContent);
descriptor: (Lorg/glassfish/grizzly/filterchain/FilterChainContext;Lorg/glassfish/grizzly/websockets/WebSocketApplication;Lorg/glassfish/grizzly/http/HttpContent;)Lorg/glassfish/grizzly/websockets/HandShake;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 3
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.createServerHandShake:(Lorg/glassfish/grizzly/http/HttpContent;)Lorg/glassfish/grizzly/websockets/HandShake;
astore 4
start local 4 1: aload 2
aload 4
invokevirtual org.glassfish.grizzly.websockets.WebSocketApplication.handshake:(Lorg/glassfish/grizzly/websockets/HandShake;)V
2: aload 3
invokevirtual org.glassfish.grizzly.http.HttpContent.getHttpHeader:()Lorg/glassfish/grizzly/http/HttpHeader;
checkcast org.glassfish.grizzly.http.HttpRequestPacket
invokevirtual org.glassfish.grizzly.http.HttpRequestPacket.getResponse:()Lorg/glassfish/grizzly/http/HttpResponsePacket;
astore 5
start local 5 3: aload 4
aload 1
aload 2
aload 5
invokevirtual org.glassfish.grizzly.websockets.HandShake.respond:(Lorg/glassfish/grizzly/filterchain/FilterChainContext;Lorg/glassfish/grizzly/websockets/WebSocketApplication;Lorg/glassfish/grizzly/http/HttpResponsePacket;)V
4: aload 4
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 5 1 ctx Lorg/glassfish/grizzly/filterchain/FilterChainContext;
0 5 2 app Lorg/glassfish/grizzly/websockets/WebSocketApplication;
0 5 3 request Lorg/glassfish/grizzly/http/HttpContent;
1 5 4 handshake Lorg/glassfish/grizzly/websockets/HandShake;
3 5 5 response Lorg/glassfish/grizzly/http/HttpResponsePacket;
MethodParameters:
Name Flags
ctx
app
request
public final org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> send(org.glassfish.grizzly.websockets.DataFrame);
descriptor: (Lorg/glassfish/grizzly/websockets/DataFrame;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.send:(Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 frame Lorg/glassfish/grizzly/websockets/DataFrame;
Signature: (Lorg/glassfish/grizzly/websockets/DataFrame;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
frame
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> send(org.glassfish.grizzly.websockets.DataFrame, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.websockets.DataFrame>);
descriptor: (Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.write:(Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 frame Lorg/glassfish/grizzly/websockets/DataFrame;
0 1 2 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/websockets/DataFrame;>;
Signature: (Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/websockets/DataFrame;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
frame
completionHandler
public org.glassfish.grizzly.Connection getConnection();
descriptor: ()Lorg/glassfish/grizzly/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.connection:Lorg/glassfish/grizzly/Connection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
public void setConnection(org.glassfish.grizzly.Connection);
descriptor: (Lorg/glassfish/grizzly/Connection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.websockets.ProtocolHandler.connection:Lorg/glassfish/grizzly/Connection;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 2 1 handler Lorg/glassfish/grizzly/Connection;
MethodParameters:
Name Flags
handler
public org.glassfish.grizzly.filterchain.FilterChainContext getFilterChainContext();
descriptor: ()Lorg/glassfish/grizzly/filterchain/FilterChainContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.ctx:Lorg/glassfish/grizzly/filterchain/FilterChainContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
public void setFilterChainContext(org.glassfish.grizzly.filterchain.FilterChainContext);
descriptor: (Lorg/glassfish/grizzly/filterchain/FilterChainContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.websockets.ProtocolHandler.ctx:Lorg/glassfish/grizzly/filterchain/FilterChainContext;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 2 1 ctx Lorg/glassfish/grizzly/filterchain/FilterChainContext;
MethodParameters:
Name Flags
ctx
protected org.glassfish.grizzly.websockets.WebSocketMappingData getMappingData();
descriptor: ()Lorg/glassfish/grizzly/websockets/WebSocketMappingData;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.mappingData:Lorg/glassfish/grizzly/websockets/WebSocketMappingData;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
protected void setMappingData(org.glassfish.grizzly.websockets.WebSocketMappingData);
descriptor: (Lorg/glassfish/grizzly/websockets/WebSocketMappingData;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.websockets.ProtocolHandler.mappingData:Lorg/glassfish/grizzly/websockets/WebSocketMappingData;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 2 1 mappingData Lorg/glassfish/grizzly/websockets/WebSocketMappingData;
MethodParameters:
Name Flags
mappingData final
public org.glassfish.grizzly.websockets.WebSocket getWebSocket();
descriptor: ()Lorg/glassfish/grizzly/websockets/WebSocket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.webSocket:Lorg/glassfish/grizzly/websockets/WebSocket;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
public void setWebSocket(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
putfield org.glassfish.grizzly.websockets.ProtocolHandler.webSocket:Lorg/glassfish/grizzly/websockets/WebSocket;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 2 1 webSocket Lorg/glassfish/grizzly/websockets/WebSocket;
MethodParameters:
Name Flags
webSocket
public boolean isMaskData();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.maskData:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
public abstract byte[] frame(org.glassfish.grizzly.websockets.DataFrame);
descriptor: (Lorg/glassfish/grizzly/websockets/DataFrame;)[B
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
frame
public org.glassfish.grizzly.websockets.DataFrame toDataFrame(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/websockets/DataFrame;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.toDataFrame:(Ljava/lang/String;Z)Lorg/glassfish/grizzly/websockets/DataFrame;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 data Ljava/lang/String;
MethodParameters:
Name Flags
data
public org.glassfish.grizzly.websockets.DataFrame toDataFrame(byte[]);
descriptor: ([B)Lorg/glassfish/grizzly/websockets/DataFrame;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.toDataFrame:([BZ)Lorg/glassfish/grizzly/websockets/DataFrame;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 data [B
MethodParameters:
Name Flags
data
public org.glassfish.grizzly.websockets.DataFrame toDataFrame(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Lorg/glassfish/grizzly/websockets/DataFrame;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.glassfish.grizzly.websockets.DataFrame
dup
new org.glassfish.grizzly.websockets.frametypes.TextFrameType
dup
invokespecial org.glassfish.grizzly.websockets.frametypes.TextFrameType.<init>:()V
aload 1
iload 2
invokespecial org.glassfish.grizzly.websockets.DataFrame.<init>:(Lorg/glassfish/grizzly/websockets/FrameType;Ljava/lang/String;Z)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 data Ljava/lang/String;
0 1 2 last Z
MethodParameters:
Name Flags
data
last
public org.glassfish.grizzly.websockets.DataFrame toDataFrame(byte[], boolean);
descriptor: ([BZ)Lorg/glassfish/grizzly/websockets/DataFrame;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.glassfish.grizzly.websockets.DataFrame
dup
new org.glassfish.grizzly.websockets.frametypes.BinaryFrameType
dup
invokespecial org.glassfish.grizzly.websockets.frametypes.BinaryFrameType.<init>:()V
aload 1
iload 2
invokespecial org.glassfish.grizzly.websockets.DataFrame.<init>:(Lorg/glassfish/grizzly/websockets/FrameType;[BZ)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 data [B
0 1 2 last Z
MethodParameters:
Name Flags
data
last
public abstract org.glassfish.grizzly.websockets.HandShake createServerHandShake(org.glassfish.grizzly.http.HttpContent);
descriptor: (Lorg/glassfish/grizzly/http/HttpContent;)Lorg/glassfish/grizzly/websockets/HandShake;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
requestContent
public abstract org.glassfish.grizzly.websockets.HandShake createClientHandShake(java.net.URI);
descriptor: (Ljava/net/URI;)Lorg/glassfish/grizzly/websockets/HandShake;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
uri
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> send(byte[]);
descriptor: ([B)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.toDataFrame:([B)Lorg/glassfish/grizzly/websockets/DataFrame;
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.send:(Lorg/glassfish/grizzly/websockets/DataFrame;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 data [B
Signature: ([B)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
data
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> send(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.toDataFrame:(Ljava/lang/String;)Lorg/glassfish/grizzly/websockets/DataFrame;
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.send:(Lorg/glassfish/grizzly/websockets/DataFrame;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 data Ljava/lang/String;
Signature: (Ljava/lang/String;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
data
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> stream(boolean, byte[], int, int);
descriptor: (Z[BII)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 0
aload 2
iload 1
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.toDataFrame:([BZ)Lorg/glassfish/grizzly/websockets/DataFrame;
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.send:(Lorg/glassfish/grizzly/websockets/DataFrame;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 4 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/ProtocolHandler;
0 1 1 last Z
0 1 2 bytes [B
0 1 3 off I
0 1 4 len I
Signature: (Z[BII)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
last
bytes
off
len
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> stream(boolean, java.lang.String);
descriptor: (ZLjava/lang/String;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 2
iload 1
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.toDataFrame:(Ljava/lang/String;Z)Lorg/glassfish/grizzly/websockets/DataFrame;
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.send:(Lorg/glassfish/grizzly/websockets/DataFrame;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 last Z
0 1 2 fragment Ljava/lang/String;
Signature: (ZLjava/lang/String;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
last
fragment
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> close(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new org.glassfish.grizzly.websockets.ClosingFrame
dup
iload 1
aload 2
invokespecial org.glassfish.grizzly.websockets.ClosingFrame.<init>:(ILjava/lang/String;)V
astore 3
start local 3 1: aload 0
aload 3
new org.glassfish.grizzly.websockets.ProtocolHandler$1
dup
aload 0
aload 3
invokespecial org.glassfish.grizzly.websockets.ProtocolHandler$1.<init>:(Lorg/glassfish/grizzly/websockets/ProtocolHandler;Lorg/glassfish/grizzly/websockets/ClosingFrame;)V
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.send:(Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 2 1 code I
0 2 2 reason Ljava/lang/String;
1 2 3 closingFrame Lorg/glassfish/grizzly/websockets/ClosingFrame;
Signature: (ILjava/lang/String;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
code
reason
private org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.websockets.DataFrame> write(org.glassfish.grizzly.websockets.DataFrame, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.websockets.DataFrame>);
descriptor: (Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.connection:Lorg/glassfish/grizzly/Connection;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new java.lang.IllegalStateException
dup
ldc "Connection is null"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.glassfish.grizzly.Connection
StackMap stack:
invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
astore 4
start local 4 4: aload 3
aload 1
new org.glassfish.grizzly.websockets.ProtocolHandler$2
dup
aload 0
aload 2
aload 1
aload 4
invokespecial org.glassfish.grizzly.websockets.ProtocolHandler$2.<init>:(Lorg/glassfish/grizzly/websockets/ProtocolHandler;Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/impl/FutureImpl;)V
invokeinterface org.glassfish.grizzly.Connection.write:(Ljava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
5: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 6 1 frame Lorg/glassfish/grizzly/websockets/DataFrame;
0 6 2 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/websockets/DataFrame;>;
1 6 3 localConnection Lorg/glassfish/grizzly/Connection;
4 6 4 localFuture Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/websockets/DataFrame;>;
Signature: (Lorg/glassfish/grizzly/websockets/DataFrame;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/websockets/DataFrame;>;)Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/websockets/DataFrame;>;
MethodParameters:
Name Flags
frame final
completionHandler final
public org.glassfish.grizzly.websockets.DataFrame unframe(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/websockets/DataFrame;
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.ProtocolHandler.parse:(Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/websockets/DataFrame;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 buffer Lorg/glassfish/grizzly/Buffer;
MethodParameters:
Name Flags
buffer
public abstract org.glassfish.grizzly.websockets.DataFrame parse(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)Lorg/glassfish/grizzly/websockets/DataFrame;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
buffer
public long decodeLength(byte[]);
descriptor: ([B)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
aload 1
arraylength
invokestatic org.glassfish.grizzly.websockets.Utils.toLong:([BII)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 1 1 bytes [B
MethodParameters:
Name Flags
bytes
public byte[] encodeLength(long);
descriptor: (J)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: lload 1
ldc 125
lcmp
ifgt 4
1: iconst_1
newarray 8
astore 3
start local 3 2: aload 3
iconst_0
lload 1
l2i
i2b
bastore
3: goto 13
end local 3 4: StackMap locals:
StackMap stack:
lload 1
invokestatic org.glassfish.grizzly.websockets.Utils.toArray:(J)[B
astore 4
start local 4 5: lload 1
ldc 65535
lcmp
ifgt 10
6: iconst_3
newarray 8
astore 3
start local 3 7: aload 3
iconst_0
bipush 126
bastore
8: aload 4
bipush 6
aload 3
iconst_1
iconst_2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: goto 13
end local 3 10: StackMap locals: org.glassfish.grizzly.websockets.ProtocolHandler long top byte[]
StackMap stack:
bipush 9
newarray 8
astore 3
start local 3 11: aload 3
iconst_0
bipush 127
bastore
12: aload 4
iconst_0
aload 3
iconst_1
bipush 8
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
end local 4 13: StackMap locals: org.glassfish.grizzly.websockets.ProtocolHandler long byte[]
StackMap stack:
aload 3
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 14 1 length J
2 4 3 lengthBytes [B
7 10 3 lengthBytes [B
11 14 3 lengthBytes [B
5 13 4 b [B
MethodParameters:
Name Flags
length final
protected void validate(byte, byte);
descriptor: (BB)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 2
iload 2
iload 1
if_icmpeq 2
aload 0
iload 2
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.isControlFrame:(B)Z
ifne 2
1: new org.glassfish.grizzly.websockets.WebSocketException
dup
ldc "Attempting to send a message while sending fragments of another"
invokespecial org.glassfish.grizzly.websockets.WebSocketException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 3 1 fragmentType B
0 3 2 opcode B
MethodParameters:
Name Flags
fragmentType final
opcode
protected abstract boolean isControlFrame(byte);
descriptor: (B)Z
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
opcode
protected byte checkForLastFrame(org.glassfish.grizzly.websockets.DataFrame, byte);
descriptor: (Lorg/glassfish/grizzly/websockets/DataFrame;B)B
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
istore 3
start local 3 1: aload 1
invokevirtual org.glassfish.grizzly.websockets.DataFrame.isLast:()Z
ifne 9
2: aload 0
aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.outFragmentedType:B
iload 3
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.validate:(BB)V
3: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.outFragmentedType:B
ifeq 6
4: iconst_0
istore 3
5: goto 14
6: StackMap locals: int
StackMap stack:
aload 0
iload 3
putfield org.glassfish.grizzly.websockets.ProtocolHandler.outFragmentedType:B
7: iload 3
bipush 127
iand
i2b
istore 3
8: goto 14
StackMap locals:
StackMap stack:
9: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.outFragmentedType:B
ifeq 13
10: bipush -128
istore 3
11: aload 0
iconst_0
putfield org.glassfish.grizzly.websockets.ProtocolHandler.outFragmentedType:B
12: goto 14
13: StackMap locals:
StackMap stack:
iload 3
sipush 128
ior
i2b
istore 3
14: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 15 1 frame Lorg/glassfish/grizzly/websockets/DataFrame;
0 15 2 opcode B
1 15 3 local B
MethodParameters:
Name Flags
frame
opcode
public void doClose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.connection:Lorg/glassfish/grizzly/Connection;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.lang.IllegalStateException
dup
ldc "Connection is null"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.glassfish.grizzly.Connection
StackMap stack:
aload 1
invokeinterface org.glassfish.grizzly.Connection.closeSilently:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
1 5 1 localConnection Lorg/glassfish/grizzly/Connection;
protected void utf8Decode(boolean, byte[], org.glassfish.grizzly.websockets.DataFrame);
descriptor: (Z[BLorg/glassfish/grizzly/websockets/DataFrame;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokevirtual org.glassfish.grizzly.websockets.ProtocolHandler.getByteBuffer:([B)Ljava/nio/ByteBuffer;
astore 4
start local 4 1: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
i2f
aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.currentDecoder:Ljava/nio/charset/CharsetDecoder;
invokevirtual java.nio.charset.CharsetDecoder.averageCharsPerByte:()F
fmul
f2i
istore 5
start local 5 2: iload 5
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 6
start local 6 3: StackMap locals: java.nio.ByteBuffer int java.nio.CharBuffer
StackMap stack:
aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.currentDecoder:Ljava/nio/charset/CharsetDecoder;
aload 4
aload 6
iload 1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 7
start local 7 4: aload 7
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 18
5: iload 1
ifeq 11
6: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.currentDecoder:Ljava/nio/charset/CharsetDecoder;
aload 6
invokevirtual java.nio.charset.CharsetDecoder.flush:(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
pop
7: aload 4
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 9
8: new java.lang.IllegalStateException
dup
ldc "Final UTF-8 fragment received, but not all bytes consumed by decode process"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.currentDecoder:Ljava/nio/charset/CharsetDecoder;
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
pop
10: goto 13
11: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 13
12: aload 0
aload 4
putfield org.glassfish.grizzly.websockets.ProtocolHandler.remainder:Ljava/nio/ByteBuffer;
13: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/Buffer;
pop
14: aload 6
invokevirtual java.nio.CharBuffer.toString:()Ljava/lang/String;
astore 8
start local 8 15: aload 3
aload 8
invokevirtual org.glassfish.grizzly.websockets.DataFrame.setPayload:(Ljava/lang/String;)V
16: aload 3
getstatic org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET:Ljava/nio/charset/Charset;
aload 8
invokestatic org.glassfish.grizzly.websockets.Utf8Utils.encode:(Ljava/nio/charset/Charset;Ljava/lang/String;)[B
invokevirtual org.glassfish.grizzly.websockets.DataFrame.setPayload:([B)V
17: goto 26
end local 8 18: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 24
19: iconst_2
iload 5
imul
iconst_1
iadd
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 8
start local 8 20: aload 6
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/Buffer;
pop
21: aload 8
aload 6
invokevirtual java.nio.CharBuffer.put:(Ljava/nio/CharBuffer;)Ljava/nio/CharBuffer;
pop
22: aload 8
astore 6
23: goto 3
end local 8 24: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifne 25
aload 7
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 3
25: StackMap locals:
StackMap stack:
new org.glassfish.grizzly.websockets.Utf8DecodingError
dup
ldc "Illegal UTF-8 Sequence"
invokespecial org.glassfish.grizzly.websockets.Utf8DecodingError.<init>:(Ljava/lang/String;)V
athrow
end local 7 26: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/glassfish/grizzly/websockets/ProtocolHandler;
0 27 1 finalFragment Z
0 27 2 data [B
0 27 3 dataFrame Lorg/glassfish/grizzly/websockets/DataFrame;
1 27 4 b Ljava/nio/ByteBuffer;
2 27 5 n I
3 27 6 cb Ljava/nio/CharBuffer;
4 26 7 result Ljava/nio/charset/CoderResult;
15 18 8 res Ljava/lang/String;
20 24 8 tmp Ljava/nio/CharBuffer;
MethodParameters:
Name Flags
finalFragment
data
dataFrame
protected java.nio.ByteBuffer getByteBuffer(byte[]);
descriptor: ([B)Ljava/nio/ByteBuffer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.remainder:Ljava/nio/ByteBuffer;
ifnonnull 2
1: aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.remainder:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
istore 2
start local 2 3: aload 0
getfield org.glassfish.grizzly.websockets.ProtocolHandler.remainder:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
astore 3
start local 3 4: iload 2
aload 1
arraylength
iadd
newarray 8
astore 4
start local 4 5: aload 3
aload 3
arraylength
iload 2
isub
aload 4
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 1
iconst_0
aload 4
iload 2
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: aload 0
aconst_null
putfield org.glassfish.grizzly.websockets.ProtocolHandler.remainder:Ljava/nio/ByteBuffer;
8: aload 4
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
areturn
end local 4 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/ProtocolHandler;
0 9 1 data [B
3 9 2 rem I
4 9 3 orig [B
5 9 4 b [B
MethodParameters:
Name Flags
data final
}
SourceFile: "ProtocolHandler.java"
NestMembers:
org.glassfish.grizzly.websockets.ProtocolHandler$1 org.glassfish.grizzly.websockets.ProtocolHandler$2
InnerClasses:
org.glassfish.grizzly.websockets.ProtocolHandler$1
org.glassfish.grizzly.websockets.ProtocolHandler$2