public class org.glassfish.grizzly.comet.CometContext<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.comet.CometContext
super_class: java.lang.Object
{
protected static final java.lang.String INVALID_COMET_HANDLER;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it."
protected static final java.lang.String ALREADY_REMOVED;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: "CometHandler already been removed or invalid."
private static final java.lang.String COMET_NOT_ENABLED;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Make sure you have enabled Comet or make sure the thread invoking that method is the same as the Servlet.service() thread."
protected static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.Object, java.lang.Object> attributes;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
protected static final java.lang.ThreadLocal<org.glassfish.grizzly.http.server.Request> REQUEST_LOCAL;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Lorg/glassfish/grizzly/http/server/Request;>;
protected java.lang.String topic;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
private long expirationDelay;
descriptor: J
flags: (0x0002) ACC_PRIVATE
protected org.glassfish.grizzly.comet.NotificationHandler notificationHandler;
descriptor: Lorg/glassfish/grizzly/comet/NotificationHandler;
flags: (0x0004) ACC_PROTECTED
private final java.util.List<org.glassfish.grizzly.comet.CometHandler> handlers;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/glassfish/grizzly/comet/CometHandler;>;
protected final org.glassfish.grizzly.comet.CometEvent<org.glassfish.grizzly.comet.CometContext> eventInterrupt;
descriptor: Lorg/glassfish/grizzly/comet/CometEvent;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lorg/glassfish/grizzly/comet/CometEvent<Lorg/glassfish/grizzly/comet/CometContext;>;
protected final org.glassfish.grizzly.comet.CometEvent<org.glassfish.grizzly.comet.CometContext> eventTerminate;
descriptor: Lorg/glassfish/grizzly/comet/CometEvent;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Lorg/glassfish/grizzly/comet/CometEvent<Lorg/glassfish/grizzly/comet/CometContext;>;
private final org.glassfish.grizzly.comet.CometEvent<org.glassfish.grizzly.comet.CometContext> eventInitialize;
descriptor: Lorg/glassfish/grizzly/comet/CometEvent;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/glassfish/grizzly/comet/CometEvent<Lorg/glassfish/grizzly/comet/CometContext;>;
private boolean isDetectClosedConnections;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/comet/CometContext;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.comet.CometContext.LOGGER:Ljava/util/logging/Logger;
1: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
putstatic org.glassfish.grizzly.comet.CometContext.REQUEST_LOCAL:Ljava/lang/ThreadLocal;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.glassfish.grizzly.comet.CometEngine, java.lang.String);
descriptor: (Lorg/glassfish/grizzly/comet/CometEngine;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield org.glassfish.grizzly.comet.CometContext.isDetectClosedConnections:Z
2: aload 0
aload 2
putfield org.glassfish.grizzly.comet.CometContext.topic:Ljava/lang/String;
3: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.glassfish.grizzly.comet.CometContext.attributes:Ljava/util/Map;
4: aload 0
new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
putfield org.glassfish.grizzly.comet.CometContext.handlers:Ljava/util/List;
5: aload 0
new org.glassfish.grizzly.comet.CometEvent
dup
getstatic org.glassfish.grizzly.comet.CometEvent$Type.INTERRUPT:Lorg/glassfish/grizzly/comet/CometEvent$Type;
aload 0
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometContext;)V
putfield org.glassfish.grizzly.comet.CometContext.eventInterrupt:Lorg/glassfish/grizzly/comet/CometEvent;
6: aload 0
new org.glassfish.grizzly.comet.CometEvent
dup
getstatic org.glassfish.grizzly.comet.CometEvent$Type.INITIALIZE:Lorg/glassfish/grizzly/comet/CometEvent$Type;
aload 0
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometContext;)V
putfield org.glassfish.grizzly.comet.CometContext.eventInitialize:Lorg/glassfish/grizzly/comet/CometEvent;
7: aload 0
new org.glassfish.grizzly.comet.CometEvent
dup
getstatic org.glassfish.grizzly.comet.CometEvent$Type.TERMINATE:Lorg/glassfish/grizzly/comet/CometEvent$Type;
aload 0
aload 0
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometContext;Ljava/lang/Object;)V
putfield org.glassfish.grizzly.comet.CometContext.eventTerminate:Lorg/glassfish/grizzly/comet/CometEvent;
8: aload 0
invokevirtual org.glassfish.grizzly.comet.CometContext.initDefaultValues:()V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 10 1 engine Lorg/glassfish/grizzly/comet/CometEngine;
0 10 2 contextTopic Ljava/lang/String;
MethodParameters:
Name Flags
engine
contextTopic
private void initDefaultValues();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc -1
putfield org.glassfish.grizzly.comet.CometContext.expirationDelay:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
public java.lang.String getContextPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.comet.CometContext.getTopic:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
public java.lang.String getTopic();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.topic:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
public void addAttribute(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.attributes:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 key Ljava/lang/Object;
0 2 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
key
value
public java.lang.Object getAttribute(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
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.comet.CometContext.attributes:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 1 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
public java.lang.Object removeAttribute(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
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.comet.CometContext.attributes:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 1 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
public int addCometHandler(org.glassfish.grizzly.comet.CometHandler<E>);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic org.glassfish.grizzly.comet.CometEngine.getEngine:()Lorg/glassfish/grizzly/comet/CometEngine;
invokevirtual org.glassfish.grizzly.comet.CometEngine.isCometEnabled:()Z
ifne 4
3: new java.lang.IllegalStateException
dup
ldc "Make sure you have enabled Comet or make sure the thread invoking that method is the same as the Servlet.service() thread."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.comet.CometContext.REQUEST_LOCAL:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.http.server.Request
astore 2
start local 2 5: aload 2
invokevirtual org.glassfish.grizzly.http.server.Request.getResponse:()Lorg/glassfish/grizzly/http/server/Response;
astore 3
start local 3 6: aload 2
invokevirtual org.glassfish.grizzly.http.server.Request.getContext:()Lorg/glassfish/grizzly/filterchain/FilterChainContext;
invokevirtual org.glassfish.grizzly.filterchain.FilterChainContext.getConnection:()Lorg/glassfish/grizzly/Connection;
astore 4
start local 4 7: aload 1
aload 3
invokeinterface org.glassfish.grizzly.comet.CometHandler.setResponse:(Lorg/glassfish/grizzly/http/server/Response;)V
8: aload 1
aload 0
invokeinterface org.glassfish.grizzly.comet.CometHandler.setCometContext:(Lorg/glassfish/grizzly/comet/CometContext;)V
9: aload 0
aload 1
invokevirtual org.glassfish.grizzly.comet.CometContext.initialize:(Lorg/glassfish/grizzly/comet/CometHandler;)V
10: new org.glassfish.grizzly.comet.CometContext$CometCompletionHandler
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.comet.CometContext$CometCompletionHandler.<init>:(Lorg/glassfish/grizzly/comet/CometContext;Lorg/glassfish/grizzly/comet/CometHandler;)V
astore 5
start local 5 11: aload 4
aload 5
invokeinterface org.glassfish.grizzly.Connection.addCloseListener:(Lorg/glassfish/grizzly/CloseListener;)V
12: aload 3
aload 0
invokevirtual org.glassfish.grizzly.comet.CometContext.getExpirationDelay:()J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
aload 5
new org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler.<init>:(Lorg/glassfish/grizzly/comet/CometContext;Lorg/glassfish/grizzly/comet/CometHandler;)V
invokevirtual org.glassfish.grizzly.http.server.Response.suspend:(JLjava/util/concurrent/TimeUnit;Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/http/server/TimeoutHandler;)V
13: aload 0
getfield org.glassfish.grizzly.comet.CometContext.isDetectClosedConnections:Z
ifeq 16
14: aload 3
getstatic org.glassfish.grizzly.http.util.Header.Connection:Lorg/glassfish/grizzly/http/util/Header;
ldc "close"
invokevirtual org.glassfish.grizzly.http.server.Response.addHeader:(Lorg/glassfish/grizzly/http/util/Header;Ljava/lang/String;)V
15: aload 3
invokevirtual org.glassfish.grizzly.http.server.Response.getRequest:()Lorg/glassfish/grizzly/http/server/Request;
invokevirtual org.glassfish.grizzly.http.server.Request.getInputBuffer:()Lorg/glassfish/grizzly/http/io/InputBuffer;
invokevirtual org.glassfish.grizzly.http.io.InputBuffer.initiateAsyncronousDataReceiving:()V
16: StackMap locals: org.glassfish.grizzly.comet.CometContext org.glassfish.grizzly.comet.CometHandler org.glassfish.grizzly.http.server.Request org.glassfish.grizzly.http.server.Response org.glassfish.grizzly.Connection org.glassfish.grizzly.comet.CometContext$CometCompletionHandler
StackMap stack:
aload 0
getfield org.glassfish.grizzly.comet.CometContext.handlers:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 17: goto 20
StackMap locals: org.glassfish.grizzly.comet.CometContext org.glassfish.grizzly.comet.CometHandler org.glassfish.grizzly.http.server.Request org.glassfish.grizzly.http.server.Response org.glassfish.grizzly.Connection
StackMap stack: java.io.IOException
18: astore 5
start local 5 19: new java.lang.RuntimeException
dup
aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 20: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.hashCode:()I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 21 1 handler Lorg/glassfish/grizzly/comet/CometHandler<TE;>;
5 21 2 request Lorg/glassfish/grizzly/http/server/Request;
6 21 3 response Lorg/glassfish/grizzly/http/server/Response;
7 21 4 c Lorg/glassfish/grizzly/Connection;
11 17 5 ccHandler Lorg/glassfish/grizzly/comet/CometContext<TE;>.CometCompletionHandler;
19 20 5 e Ljava/io/IOException;
Exception table:
from to target type
9 17 18 Class java.io.IOException
Signature: (Lorg/glassfish/grizzly/comet/CometHandler<TE;>;)I
MethodParameters:
Name Flags
handler
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.notificationHandler:Lorg/glassfish/grizzly/comet/NotificationHandler;
new org.glassfish.grizzly.comet.CometEvent
dup
getstatic org.glassfish.grizzly.comet.CometEvent$Type.TERMINATE:Lorg/glassfish/grizzly/comet/CometEvent$Type;
aload 0
aconst_null
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometContext;Ljava/lang/Object;)V
aload 0
getfield org.glassfish.grizzly.comet.CometContext.handlers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
invokeinterface org.glassfish.grizzly.comet.NotificationHandler.notify:(Lorg/glassfish/grizzly/comet/CometEvent;Ljava/util/Iterator;)V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.comet.CometContext.handlers:Ljava/util/List;
invokeinterface java.util.List.clear:()V
4: aload 0
getfield org.glassfish.grizzly.comet.CometContext.attributes:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
5: aload 0
aconst_null
putfield org.glassfish.grizzly.comet.CometContext.topic:Ljava/lang/String;
6: aload 0
aconst_null
putfield org.glassfish.grizzly.comet.CometContext.notificationHandler:Lorg/glassfish/grizzly/comet/NotificationHandler;
7: aload 0
invokevirtual org.glassfish.grizzly.comet.CometContext.initDefaultValues:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
Exception table:
from to target type
0 1 2 Class java.io.IOException
protected void invokeCometHandler(org.glassfish.grizzly.comet.CometEvent, org.glassfish.grizzly.comet.CometHandler);
descriptor: (Lorg/glassfish/grizzly/comet/CometEvent;Lorg/glassfish/grizzly/comet/CometHandler;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual org.glassfish.grizzly.comet.CometEvent.setCometContext:(Lorg/glassfish/grizzly/comet/CometContext;)V
3: aload 2
aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.onEvent:(Lorg/glassfish/grizzly/comet/CometEvent;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 5 1 event Lorg/glassfish/grizzly/comet/CometEvent;
0 5 2 cometHandler Lorg/glassfish/grizzly/comet/CometHandler;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
event
cometHandler
public boolean removeCometHandler(org.glassfish.grizzly.comet.CometHandler);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;)Z
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.comet.CometContext.removeCometHandler:(Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 1 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
MethodParameters:
Name Flags
handler
public boolean removeCometHandler(org.glassfish.grizzly.comet.CometHandler, boolean);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.handlers:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
istore 3
start local 3 1: iload 3
ifeq 3
iload 2
ifeq 3
2: aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.getResponse:()Lorg/glassfish/grizzly/http/server/Response;
invokevirtual org.glassfish.grizzly.http.server.Response.resume:()V
3: StackMap locals: int
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 4 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
0 4 2 resume Z
1 4 3 removed Z
MethodParameters:
Name Flags
handler
resume
public boolean resumeCometHandler(org.glassfish.grizzly.comet.CometHandler);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual org.glassfish.grizzly.comet.CometContext.interrupt:(Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 1 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handler
public boolean interrupt(org.glassfish.grizzly.comet.CometHandler, boolean);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.getCometContext:()Lorg/glassfish/grizzly/comet/CometContext;
astore 3
start local 3 1: aload 3
aload 1
iload 2
invokevirtual org.glassfish.grizzly.comet.CometContext.removeCometHandler:(Lorg/glassfish/grizzly/comet/CometHandler;Z)Z
istore 4
start local 4 2: iload 4
ifeq 4
iload 2
ifne 4
3: aload 0
aload 1
iload 2
invokevirtual org.glassfish.grizzly.comet.CometContext.interrupt0:(Lorg/glassfish/grizzly/comet/CometHandler;Z)V
4: StackMap locals: org.glassfish.grizzly.comet.CometContext int
StackMap stack:
iload 4
ireturn
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/comet/CometContext<TE;>;
0 5 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
0 5 2 finishExecution Z
1 5 3 cometContext Lorg/glassfish/grizzly/comet/CometContext;
2 5 4 removed Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handler
finishExecution
protected void interrupt0(org.glassfish.grizzly.comet.CometHandler, boolean);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 4
1: aload 1
aload 0
getfield org.glassfish.grizzly.comet.CometContext.eventInterrupt:Lorg/glassfish/grizzly/comet/CometEvent;
invokeinterface org.glassfish.grizzly.comet.CometHandler.onInterrupt:(Lorg/glassfish/grizzly/comet/CometEvent;)V
2: goto 4
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.glassfish.grizzly.comet.CometHandler.getResponse:()Lorg/glassfish/grizzly/http/server/Response;
invokevirtual org.glassfish.grizzly.http.server.Response.resume:()V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 6 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
0 6 2 finishExecution Z
Exception table:
from to target type
1 2 3 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handler
finishExecution
public boolean isActive(org.glassfish.grizzly.comet.CometHandler);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;)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.comet.CometContext.handlers:Ljava/util/List;
aload 1
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 1 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
MethodParameters:
Name Flags
handler
public void notify();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.glassfish.grizzly.comet.CometEvent$Type.NOTIFY:Lorg/glassfish/grizzly/comet/CometEvent$Type;
invokevirtual org.glassfish.grizzly.comet.CometContext.notify:(Ljava/lang/Object;Lorg/glassfish/grizzly/comet/CometEvent$Type;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 attachment TE;
Exceptions:
throws java.io.IOException
Signature: (TE;)V
MethodParameters:
Name Flags
attachment
public void notify(E, org.glassfish.grizzly.comet.CometHandler);
descriptor: (Ljava/lang/Object;Lorg/glassfish/grizzly/comet/CometHandler;)V
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 1
getstatic org.glassfish.grizzly.comet.CometEvent$Type.NOTIFY:Lorg/glassfish/grizzly/comet/CometEvent$Type;
aload 2
invokevirtual org.glassfish.grizzly.comet.CometContext.notify:(Ljava/lang/Object;Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometHandler;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 attachment TE;
0 2 2 cometHandler Lorg/glassfish/grizzly/comet/CometHandler;
Exceptions:
throws java.io.IOException
Signature: (TE;Lorg/glassfish/grizzly/comet/CometHandler;)V
MethodParameters:
Name Flags
attachment
cometHandler
public void notify(E, org.glassfish.grizzly.comet.CometEvent$Type, org.glassfish.grizzly.comet.CometHandler);
descriptor: (Ljava/lang/Object;Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "CometHandler cannot be null. This CometHandler was probably resumed and an invalid reference was made to it."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new org.glassfish.grizzly.comet.CometEvent
dup
aload 2
aload 0
aload 1
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometContext;Ljava/lang/Object;)V
astore 4
start local 4 3: aload 0
getfield org.glassfish.grizzly.comet.CometContext.notificationHandler:Lorg/glassfish/grizzly/comet/NotificationHandler;
aload 4
aload 3
invokeinterface org.glassfish.grizzly.comet.NotificationHandler.notify:(Lorg/glassfish/grizzly/comet/CometEvent;Lorg/glassfish/grizzly/comet/CometHandler;)V
4: return
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/comet/CometContext<TE;>;
0 5 1 attachment TE;
0 5 2 eventType Lorg/glassfish/grizzly/comet/CometEvent$Type;
0 5 3 cometHandler Lorg/glassfish/grizzly/comet/CometHandler;
3 5 4 event Lorg/glassfish/grizzly/comet/CometEvent<TE;>;
Exceptions:
throws java.io.IOException
Signature: (TE;Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometHandler;)V
MethodParameters:
Name Flags
attachment
eventType
cometHandler
public void notify(E, org.glassfish.grizzly.comet.CometEvent$Type);
descriptor: (Ljava/lang/Object;Lorg/glassfish/grizzly/comet/CometEvent$Type;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.notificationHandler:Lorg/glassfish/grizzly/comet/NotificationHandler;
new org.glassfish.grizzly.comet.CometEvent
dup
aload 2
aload 0
aload 1
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;Lorg/glassfish/grizzly/comet/CometContext;Ljava/lang/Object;)V
aload 0
getfield org.glassfish.grizzly.comet.CometContext.handlers:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
invokeinterface org.glassfish.grizzly.comet.NotificationHandler.notify:(Lorg/glassfish/grizzly/comet/CometEvent;Ljava/util/Iterator;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 attachment TE;
0 2 2 eventType Lorg/glassfish/grizzly/comet/CometEvent$Type;
Exceptions:
throws java.io.IOException
Signature: (TE;Lorg/glassfish/grizzly/comet/CometEvent$Type;)V
MethodParameters:
Name Flags
attachment
eventType
protected void initialize(org.glassfish.grizzly.comet.CometHandler);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.glassfish.grizzly.comet.CometContext.eventInitialize:Lorg/glassfish/grizzly/comet/CometEvent;
invokeinterface org.glassfish.grizzly.comet.CometHandler.onInitialize:(Lorg/glassfish/grizzly/comet/CometEvent;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 handler Lorg/glassfish/grizzly/comet/CometHandler;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
handler
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.topic:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
public long getExpirationDelay();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.expirationDelay:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
public void setExpirationDelay(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
lload 1
putfield org.glassfish.grizzly.comet.CometContext.expirationDelay:J
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 expirationDelay J
MethodParameters:
Name Flags
expirationDelay
public java.util.List<org.glassfish.grizzly.comet.CometHandler> getCometHandlers();
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.comet.CometContext.handlers:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
Signature: ()Ljava/util/List<Lorg/glassfish/grizzly/comet/CometHandler;>;
public void setNotificationHandler(org.glassfish.grizzly.comet.NotificationHandler);
descriptor: (Lorg/glassfish/grizzly/comet/NotificationHandler;)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.comet.CometContext.notificationHandler:Lorg/glassfish/grizzly/comet/NotificationHandler;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 notificationHandler Lorg/glassfish/grizzly/comet/NotificationHandler;
MethodParameters:
Name Flags
notificationHandler
public org.glassfish.grizzly.comet.NotificationHandler getNotificationHandler();
descriptor: ()Lorg/glassfish/grizzly/comet/NotificationHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.notificationHandler:Lorg/glassfish/grizzly/comet/NotificationHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
public void setDetectClosedConnections(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
iload 1
putfield org.glassfish.grizzly.comet.CometContext.isDetectClosedConnections:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
0 2 1 isDetectClosedConnections Z
MethodParameters:
Name Flags
isDetectClosedConnections final
public boolean isDetectClosedConnections();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.comet.CometContext.isDetectClosedConnections:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/comet/CometContext<TE;>;
private static void notifyOnAsyncRead(org.glassfish.grizzly.comet.CometHandler);
descriptor: (Lorg/glassfish/grizzly/comet/CometHandler;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
new org.glassfish.grizzly.comet.CometEvent
dup
getstatic org.glassfish.grizzly.comet.CometEvent$Type.READ:Lorg/glassfish/grizzly/comet/CometEvent$Type;
invokespecial org.glassfish.grizzly.comet.CometEvent.<init>:(Lorg/glassfish/grizzly/comet/CometEvent$Type;)V
invokeinterface org.glassfish.grizzly.comet.CometHandler.onEvent:(Lorg/glassfish/grizzly/comet/CometEvent;)V
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: getstatic org.glassfish.grizzly.comet.CometContext.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 handler Lorg/glassfish/grizzly/comet/CometHandler;
3 4 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
handler
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "CometContext.java"
NestMembers:
org.glassfish.grizzly.comet.CometContext$CometCompletionHandler org.glassfish.grizzly.comet.CometContext$CometInputHandler org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler
InnerClasses:
private CometCompletionHandler = org.glassfish.grizzly.comet.CometContext$CometCompletionHandler of org.glassfish.grizzly.comet.CometContext
private CometInputHandler = org.glassfish.grizzly.comet.CometContext$CometInputHandler of org.glassfish.grizzly.comet.CometContext
private CometTimeoutHandler = org.glassfish.grizzly.comet.CometContext$CometTimeoutHandler of org.glassfish.grizzly.comet.CometContext
public final Type = org.glassfish.grizzly.comet.CometEvent$Type of org.glassfish.grizzly.comet.CometEvent