public class io.dropwizard.jetty.ServerPushFilterFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.jetty.ServerPushFilterFactory
super_class: java.lang.Object
{
private static final com.google.common.base.Joiner COMMA_JOINER;
descriptor: Lcom/google/common/base/Joiner;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean enabled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private io.dropwizard.util.Duration associatePeriod;
descriptor: Lio/dropwizard/util/Duration;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
io.dropwizard.validation.MinDuration(value = 1, unit = java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;)
RuntimeVisibleTypeAnnotations:
FIELD
io.dropwizard.validation.MinDuration(value = 1, unit = java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;)
private int maxAssociations;
descriptor: I
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
javax.validation.constraints.Min(value = 1)
private java.util.List<java.lang.String> refererHosts;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
private java.util.List<java.lang.Integer> refererPorts;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/Integer;>;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc ","
invokestatic com.google.common.base.Joiner.on:(Ljava/lang/String;)Lcom/google/common/base/Joiner;
putstatic io.dropwizard.jetty.ServerPushFilterFactory.COMMA_JOINER:Lcom/google/common/base/Joiner;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield io.dropwizard.jetty.ServerPushFilterFactory.enabled:Z
2: aload 0
ldc 4
invokestatic io.dropwizard.util.Duration.seconds:(J)Lio/dropwizard/util/Duration;
putfield io.dropwizard.jetty.ServerPushFilterFactory.associatePeriod:Lio/dropwizard/util/Duration;
3: aload 0
bipush 16
putfield io.dropwizard.jetty.ServerPushFilterFactory.maxAssociations:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
public boolean isEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.enabled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setEnabled(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 io.dropwizard.jetty.ServerPushFilterFactory.enabled:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 2 1 enabled Z
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
enabled
public io.dropwizard.util.Duration getAssociatePeriod();
descriptor: ()Lio/dropwizard/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.associatePeriod:Lio/dropwizard/util/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setAssociatePeriod(io.dropwizard.util.Duration);
descriptor: (Lio/dropwizard/util/Duration;)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 io.dropwizard.jetty.ServerPushFilterFactory.associatePeriod:Lio/dropwizard/util/Duration;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 2 1 associatePeriod Lio/dropwizard/util/Duration;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
associatePeriod
public int getMaxAssociations();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.maxAssociations:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setMaxAssociations(int);
descriptor: (I)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 io.dropwizard.jetty.ServerPushFilterFactory.maxAssociations:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 2 1 maxAssociations I
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
maxAssociations
public java.util.List<java.lang.String> getRefererHosts();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererHosts:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
com.fasterxml.jackson.annotation.JsonProperty()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nullable()
public void setRefererHosts(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)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 io.dropwizard.jetty.ServerPushFilterFactory.refererHosts:Ljava/util/List;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 2 1 refererHosts Ljava/util/List<Ljava/lang/String;>;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
javax.annotation.Nullable()
RuntimeVisibleParameterAnnotations:
0:
javax.annotation.Nullable()
MethodParameters:
Name Flags
refererHosts
public java.util.List<java.lang.Integer> getRefererPorts();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererPorts:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
Signature: ()Ljava/util/List<Ljava/lang/Integer;>;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
com.fasterxml.jackson.annotation.JsonProperty()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nullable()
public void setRefererPorts(java.util.List<java.lang.Integer>);
descriptor: (Ljava/util/List;)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 io.dropwizard.jetty.ServerPushFilterFactory.refererPorts:Ljava/util/List;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 2 1 refererPorts Ljava/util/List<Ljava/lang/Integer;>;
Signature: (Ljava/util/List<Ljava/lang/Integer;>;)V
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
javax.annotation.Nullable()
RuntimeVisibleParameterAnnotations:
0:
javax.annotation.Nullable()
MethodParameters:
Name Flags
refererPorts
public void addFilter(org.eclipse.jetty.servlet.ServletContextHandler);
descriptor: (Lorg/eclipse/jetty/servlet/ServletContextHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.enabled:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
ldc "associatePeriod"
aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.associatePeriod:Lio/dropwizard/util/Duration;
invokevirtual io.dropwizard.util.Duration.toMilliseconds:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokevirtual org.eclipse.jetty.servlet.ServletContextHandler.setInitParameter:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
3: aload 1
ldc "maxAssociations"
aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.maxAssociations:I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokevirtual org.eclipse.jetty.servlet.ServletContextHandler.setInitParameter:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
4: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererHosts:Ljava/util/List;
ifnull 6
5: aload 1
ldc "hosts"
getstatic io.dropwizard.jetty.ServerPushFilterFactory.COMMA_JOINER:Lcom/google/common/base/Joiner;
aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererHosts:Ljava/util/List;
invokevirtual com.google.common.base.Joiner.join:(Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual org.eclipse.jetty.servlet.ServletContextHandler.setInitParameter:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
6: StackMap locals:
StackMap stack:
aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererPorts:Ljava/util/List;
ifnull 8
7: aload 1
ldc "ports"
getstatic io.dropwizard.jetty.ServerPushFilterFactory.COMMA_JOINER:Lcom/google/common/base/Joiner;
aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererPorts:Ljava/util/List;
invokevirtual com.google.common.base.Joiner.join:(Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual org.eclipse.jetty.servlet.ServletContextHandler.setInitParameter:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
8: StackMap locals:
StackMap stack:
aload 1
ldc Lorg/eclipse/jetty/servlets/PushCacheFilter;
ldc "/*"
getstatic javax.servlet.DispatcherType.REQUEST:Ljavax/servlet/DispatcherType;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
invokevirtual org.eclipse.jetty.servlet.ServletContextHandler.addFilter:(Ljava/lang/Class;Ljava/lang/String;Ljava/util/EnumSet;)Lorg/eclipse/jetty/servlet/FilterHolder;
pop
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 10 1 handler Lorg/eclipse/jetty/servlet/ServletContextHandler;
MethodParameters:
Name Flags
handler
}
SourceFile: "ServerPushFilterFactory.java"