public class javax.servlet.ServletSecurityElement extends javax.servlet.HttpConstraintElement
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.servlet.ServletSecurityElement
super_class: javax.servlet.HttpConstraintElement
{
private java.util.Collection<java.lang.String> methodNames;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Ljava/lang/String;>;
private java.util.Collection<javax.servlet.HttpMethodConstraintElement> methodConstraints;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.servlet.HttpConstraintElement.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
2: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
putfield javax.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/servlet/ServletSecurityElement;
public void <init>(javax.servlet.HttpConstraintElement);
descriptor: (Ljavax/servlet/HttpConstraintElement;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.servlet.HttpConstraintElement.getEmptyRoleSemantic:()Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 1
invokevirtual javax.servlet.HttpConstraintElement.getTransportGuarantee:()Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 1
invokevirtual javax.servlet.HttpConstraintElement.getRolesAllowed:()[Ljava/lang/String;
invokespecial javax.servlet.HttpConstraintElement.<init>:(Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
2: aload 0
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
putfield javax.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/servlet/ServletSecurityElement;
0 4 1 constraint Ljavax/servlet/HttpConstraintElement;
MethodParameters:
Name Flags
constraint
public void <init>(java.util.Collection<javax.servlet.HttpMethodConstraintElement>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.servlet.HttpConstraintElement.<init>:()V
1: aload 0
aload 1
ifnonnull 2
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
goto 3
StackMap locals: javax.servlet.ServletSecurityElement java.util.Collection
StackMap stack: javax.servlet.ServletSecurityElement
2: aload 1
StackMap locals: javax.servlet.ServletSecurityElement java.util.Collection
StackMap stack: javax.servlet.ServletSecurityElement java.util.Collection
3: putfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
4: aload 0
aload 0
aload 0
getfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokevirtual javax.servlet.ServletSecurityElement.checkMethodNames:(Ljava/util/Collection;)Ljava/util/Collection;
putfield javax.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/servlet/ServletSecurityElement;
0 6 1 methodConstraints Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;
Signature: (Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;)V
MethodParameters:
Name Flags
methodConstraints
public void <init>(javax.servlet.HttpConstraintElement, java.util.Collection<javax.servlet.HttpMethodConstraintElement>);
descriptor: (Ljavax/servlet/HttpConstraintElement;Ljava/util/Collection;)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
invokevirtual javax.servlet.HttpConstraintElement.getEmptyRoleSemantic:()Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 1
invokevirtual javax.servlet.HttpConstraintElement.getTransportGuarantee:()Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 1
invokevirtual javax.servlet.HttpConstraintElement.getRolesAllowed:()[Ljava/lang/String;
invokespecial javax.servlet.HttpConstraintElement.<init>:(Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: aload 0
aload 2
ifnonnull 2
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
goto 3
StackMap locals: javax.servlet.ServletSecurityElement javax.servlet.HttpConstraintElement java.util.Collection
StackMap stack: javax.servlet.ServletSecurityElement
2: aload 2
StackMap locals: javax.servlet.ServletSecurityElement javax.servlet.HttpConstraintElement java.util.Collection
StackMap stack: javax.servlet.ServletSecurityElement java.util.Collection
3: putfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
4: aload 0
aload 0
aload 0
getfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokevirtual javax.servlet.ServletSecurityElement.checkMethodNames:(Ljava/util/Collection;)Ljava/util/Collection;
putfield javax.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/servlet/ServletSecurityElement;
0 6 1 constraint Ljavax/servlet/HttpConstraintElement;
0 6 2 methodConstraints Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;
Signature: (Ljavax/servlet/HttpConstraintElement;Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;)V
MethodParameters:
Name Flags
constraint
methodConstraints
public void <init>(javax.servlet.annotation.ServletSecurity);
descriptor: (Ljavax/servlet/annotation/ServletSecurity;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface javax.servlet.annotation.ServletSecurity.value:()Ljavax/servlet/annotation/HttpConstraint;
invokeinterface javax.servlet.annotation.HttpConstraint.value:()Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 1
invokeinterface javax.servlet.annotation.ServletSecurity.value:()Ljavax/servlet/annotation/HttpConstraint;
invokeinterface javax.servlet.annotation.HttpConstraint.transportGuarantee:()Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 1
invokeinterface javax.servlet.annotation.ServletSecurity.value:()Ljavax/servlet/annotation/HttpConstraint;
invokeinterface javax.servlet.annotation.HttpConstraint.rolesAllowed:()[Ljava/lang/String;
invokespecial javax.servlet.HttpConstraintElement.<init>:(Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
2: aload 1
invokeinterface javax.servlet.annotation.ServletSecurity.httpMethodConstraints:()[Ljavax/servlet/annotation/HttpMethodConstraint;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 8
StackMap locals: javax.servlet.ServletSecurityElement javax.servlet.annotation.ServletSecurity top int int javax.servlet.annotation.HttpMethodConstraint[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 0
getfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
new javax.servlet.HttpMethodConstraintElement
dup
aload 2
invokeinterface javax.servlet.annotation.HttpMethodConstraint.value:()Ljava/lang/String;
new javax.servlet.HttpConstraintElement
dup
5: aload 2
invokeinterface javax.servlet.annotation.HttpMethodConstraint.emptyRoleSemantic:()Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;
aload 2
invokeinterface javax.servlet.annotation.HttpMethodConstraint.transportGuarantee:()Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;
aload 2
invokeinterface javax.servlet.annotation.HttpMethodConstraint.rolesAllowed:()[Ljava/lang/String;
invokespecial javax.servlet.HttpConstraintElement.<init>:(Ljavax/servlet/annotation/ServletSecurity$EmptyRoleSemantic;Ljavax/servlet/annotation/ServletSecurity$TransportGuarantee;[Ljava/lang/String;)V
invokespecial javax.servlet.HttpMethodConstraintElement.<init>:(Ljava/lang/String;Ljavax/servlet/HttpConstraintElement;)V
6: invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 2 7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 4
if_icmplt 3
9: aload 0
aload 0
aload 0
getfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokevirtual javax.servlet.ServletSecurityElement.checkMethodNames:(Ljava/util/Collection;)Ljava/util/Collection;
putfield javax.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/servlet/ServletSecurityElement;
0 11 1 annotation Ljavax/servlet/annotation/ServletSecurity;
4 7 2 constraint Ljavax/servlet/annotation/HttpMethodConstraint;
MethodParameters:
Name Flags
annotation
public java.util.Collection<javax.servlet.HttpMethodConstraintElement> getHttpMethodConstraints();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.servlet.ServletSecurityElement.methodConstraints:Ljava/util/Collection;
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/servlet/ServletSecurityElement;
Signature: ()Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;
public java.util.Collection<java.lang.String> getMethodNames();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.servlet.ServletSecurityElement.methodNames:Ljava/util/Collection;
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/servlet/ServletSecurityElement;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
private java.util.Collection<java.lang.String> checkMethodNames(java.util.Collection<javax.servlet.HttpMethodConstraintElement>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: javax.servlet.ServletSecurityElement java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.servlet.HttpMethodConstraintElement
astore 3
start local 3 3: aload 3
invokevirtual javax.servlet.HttpMethodConstraintElement.getMethodName:()Ljava/lang/String;
astore 5
start local 5 4: aload 2
aload 5
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
ifne 6
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Duplicate HTTP method name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/servlet/ServletSecurityElement;
0 8 1 methodConstraints Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;
1 8 2 methodNames Ljava/util/Collection<Ljava/lang/String;>;
3 6 3 methodConstraint Ljavax/servlet/HttpMethodConstraintElement;
4 6 5 methodName Ljava/lang/String;
Signature: (Ljava/util/Collection<Ljavax/servlet/HttpMethodConstraintElement;>;)Ljava/util/Collection<Ljava/lang/String;>;
MethodParameters:
Name Flags
methodConstraints
}
SourceFile: "ServletSecurityElement.java"
InnerClasses:
public final EmptyRoleSemantic = javax.servlet.annotation.ServletSecurity$EmptyRoleSemantic of javax.servlet.annotation.ServletSecurity
public final TransportGuarantee = javax.servlet.annotation.ServletSecurity$TransportGuarantee of javax.servlet.annotation.ServletSecurity