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 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)
RuntimeVisibleTypeAnnotations:
FIELD
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()
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=3, 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"
ldc ","
aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererHosts:Ljava/util/List;
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;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 12
7: aload 0
getfield io.dropwizard.jetty.ServerPushFilterFactory.refererPorts:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
8: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/Object.toString()Ljava/lang/String; (5)
(Ljava/lang/Integer;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
9: ldc ","
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
10: astore 2
start local 2 11: aload 1
ldc "ports"
aload 2
invokevirtual org.eclipse.jetty.servlet.ServletContextHandler.setInitParameter:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
end local 2 12: 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
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/dropwizard/jetty/ServerPushFilterFactory;
0 14 1 handler Lorg/eclipse/jetty/servlet/ServletContextHandler;
11 12 2 ports Ljava/lang/String;
MethodParameters:
Name Flags
handler
}
SourceFile: "ServerPushFilterFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles