public class javax.ws.rs.NotAllowedException extends javax.ws.rs.ClientErrorException
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.ws.rs.NotAllowedException
super_class: javax.ws.rs.ClientErrorException
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -586776054369626119
public void <init>(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic javax.ws.rs.NotAllowedException.createNotAllowedResponse:(Ljava/lang/String;[Ljava/lang/String;)Ljavax/ws/rs/core/Response;
invokestatic javax.ws.rs.NotAllowedException.validateAllow:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljavax/ws/rs/core/Response;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 allowed Ljava/lang/String;
0 2 2 moreAllowed [Ljava/lang/String;
MethodParameters:
Name Flags
allowed
moreAllowed
public void <init>(java.lang.String, java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic javax.ws.rs.NotAllowedException.createNotAllowedResponse:(Ljava/lang/String;[Ljava/lang/String;)Ljavax/ws/rs/core/Response;
invokestatic javax.ws.rs.NotAllowedException.validateAllow:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljava/lang/String;Ljavax/ws/rs/core/Response;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 message Ljava/lang/String;
0 2 2 allowed Ljava/lang/String;
0 2 3 moreAllowed [Ljava/lang/String;
MethodParameters:
Name Flags
message
allowed
moreAllowed
private static javax.ws.rs.core.Response createNotAllowedResponse(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljavax/ws/rs/core/Response;
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "No allowed method specified."
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ifnull 7
aload 1
arraylength
ifle 7
3: new java.util.HashSet
dup
aload 1
arraylength
iconst_1
iadd
invokespecial java.util.HashSet.<init>:(I)V
astore 2
start local 2 4: aload 2
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: aload 2
aload 1
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
6: goto 8
end local 2 7: StackMap locals:
StackMap stack:
aload 0
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
astore 2
start local 2 8: StackMap locals: java.util.Set
StackMap stack:
getstatic javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.core.Response.status:(Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 2
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.allow:(Ljava/util/Set;)Ljavax/ws/rs/core/Response$ResponseBuilder;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 allowed Ljava/lang/String;
0 9 1 moreAllowed [Ljava/lang/String;
4 7 2 methods Ljava/util/Set<Ljava/lang/String;>;
8 9 2 methods Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
allowed
moreAllowed
public void <init>(javax.ws.rs.core.Response);
descriptor: (Ljavax/ws/rs/core/Response;)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 javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.NotAllowedException.validate:(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljavax/ws/rs/core/Response;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 response Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
response
public void <init>(java.lang.String, javax.ws.rs.core.Response);
descriptor: (Ljava/lang/String;Ljavax/ws/rs/core/Response;)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
aload 2
getstatic javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.NotAllowedException.validate:(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljava/lang/String;Ljavax/ws/rs/core/Response;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 message Ljava/lang/String;
0 2 2 response Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
message
response
public void <init>(java.lang.Throwable, java.lang.String[]);
descriptor: (Ljava/lang/Throwable;[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.core.Response.status:(Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 2
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.allow:([Ljava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
invokestatic javax.ws.rs.NotAllowedException.validateAllow:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
aload 1
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljavax/ws/rs/core/Response;Ljava/lang/Throwable;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 cause Ljava/lang/Throwable;
0 2 2 allowedMethods [Ljava/lang/String;
MethodParameters:
Name Flags
cause
allowedMethods
public void <init>(java.lang.String, java.lang.Throwable, java.lang.String[]);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
getstatic javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.core.Response.status:(Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response$ResponseBuilder;
aload 3
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.allow:([Ljava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
invokestatic javax.ws.rs.NotAllowedException.validateAllow:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
aload 2
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljava/lang/String;Ljavax/ws/rs/core/Response;Ljava/lang/Throwable;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 message Ljava/lang/String;
0 2 2 cause Ljava/lang/Throwable;
0 2 3 allowedMethods [Ljava/lang/String;
MethodParameters:
Name Flags
message
cause
allowedMethods
public void <init>(javax.ws.rs.core.Response, java.lang.Throwable);
descriptor: (Ljavax/ws/rs/core/Response;Ljava/lang/Throwable;)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
aload 1
getstatic javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.NotAllowedException.validate:(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;
invokestatic javax.ws.rs.NotAllowedException.validateAllow:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
aload 2
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljavax/ws/rs/core/Response;Ljava/lang/Throwable;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 response Ljavax/ws/rs/core/Response;
0 2 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
response
cause
public void <init>(java.lang.String, javax.ws.rs.core.Response, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljavax/ws/rs/core/Response;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
getstatic javax.ws.rs.core.Response$Status.METHOD_NOT_ALLOWED:Ljavax/ws/rs/core/Response$Status;
invokestatic javax.ws.rs.NotAllowedException.validate:(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;
invokestatic javax.ws.rs.NotAllowedException.validateAllow:(Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
aload 3
invokespecial javax.ws.rs.ClientErrorException.<init>:(Ljava/lang/String;Ljavax/ws/rs/core/Response;Ljava/lang/Throwable;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/ws/rs/NotAllowedException;
0 2 1 message Ljava/lang/String;
0 2 2 response Ljavax/ws/rs/core/Response;
0 2 3 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
message
response
cause
private static javax.ws.rs.core.Response validateAllow(javax.ws.rs.core.Response);
descriptor: (Ljavax/ws/rs/core/Response;)Ljavax/ws/rs/core/Response;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.ws.rs.core.Response.getHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Allow"
invokeinterface javax.ws.rs.core.MultivaluedMap.containsKey:(Ljava/lang/Object;)Z
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Response does not contain required 'Allow' HTTP header."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 response Ljavax/ws/rs/core/Response;
MethodParameters:
Name Flags
response final
}
SourceFile: "NotAllowedException.java"
InnerClasses:
public abstract ResponseBuilder = javax.ws.rs.core.Response$ResponseBuilder of javax.ws.rs.core.Response
public final Status = javax.ws.rs.core.Response$Status of javax.ws.rs.core.Response