public class io.dropwizard.jersey.errors.IllegalStateExceptionMapper extends io.dropwizard.jersey.errors.LoggingExceptionMapper<java.lang.IllegalStateException>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.jersey.errors.IllegalStateExceptionMapper
super_class: io.dropwizard.jersey.errors.LoggingExceptionMapper
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/jersey/errors/IllegalStateExceptionMapper;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.jersey.errors.IllegalStateExceptionMapper.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.dropwizard.jersey.errors.LoggingExceptionMapper.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/errors/IllegalStateExceptionMapper;
public javax.ws.rs.core.Response toResponse(java.lang.IllegalStateException);
descriptor: (Ljava/lang/IllegalStateException;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.IllegalStateException.getMessage:()Ljava/lang/String;
astore 2
start local 2 1: invokestatic org.glassfish.jersey.server.internal.LocalizationMessages.FORM_PARAM_CONTENT_TYPE_ERROR:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
2: getstatic io.dropwizard.jersey.errors.IllegalStateExceptionMapper.LOGGER:Lorg/slf4j/Logger;
ldc "If the HTTP method is POST and using @FormParam in a resource method, Content-Type should be application/x-www-form-urlencoded."
3: aload 1
4: invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
5: aload 0
new javax.ws.rs.NotSupportedException
dup
invokespecial javax.ws.rs.NotSupportedException.<init>:()V
invokevirtual io.dropwizard.jersey.errors.IllegalStateExceptionMapper.createResponse:(Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
areturn
6: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 1
invokespecial io.dropwizard.jersey.errors.LoggingExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/dropwizard/jersey/errors/IllegalStateExceptionMapper;
0 7 1 exception Ljava/lang/IllegalStateException;
1 7 2 message Ljava/lang/String;
MethodParameters:
Name Flags
exception final
private javax.ws.rs.core.Response createResponse(javax.ws.rs.WebApplicationException);
descriptor: (Ljavax/ws/rs/WebApplicationException;)Ljavax/ws/rs/core/Response;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new io.dropwizard.jersey.errors.ErrorMessage
dup
aload 1
invokevirtual javax.ws.rs.WebApplicationException.getResponse:()Ljavax/ws/rs/core/Response;
invokevirtual javax.ws.rs.core.Response.getStatus:()I
1: aload 1
invokevirtual javax.ws.rs.WebApplicationException.getLocalizedMessage:()Ljava/lang/String;
2: invokespecial io.dropwizard.jersey.errors.ErrorMessage.<init>:(ILjava/lang/String;)V
astore 2
start local 2 3: aload 2
invokevirtual io.dropwizard.jersey.errors.ErrorMessage.getCode:()Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
4: getstatic javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE:Ljavax/ws/rs/core/MediaType;
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.type:(Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/core/Response$ResponseBuilder;
5: aload 2
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
6: invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/dropwizard/jersey/errors/IllegalStateExceptionMapper;
0 8 1 exception Ljavax/ws/rs/WebApplicationException;
3 8 2 errorMessage Lio/dropwizard/jersey/errors/ErrorMessage;
MethodParameters:
Name Flags
exception final
public javax.ws.rs.core.Response toResponse(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.IllegalStateException
invokevirtual io.dropwizard.jersey.errors.IllegalStateExceptionMapper.toResponse:(Ljava/lang/IllegalStateException;)Ljavax/ws/rs/core/Response;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lio/dropwizard/jersey/errors/LoggingExceptionMapper<Ljava/lang/IllegalStateException;>;
SourceFile: "IllegalStateExceptionMapper.java"
InnerClasses:
public abstract ResponseBuilder = javax.ws.rs.core.Response$ResponseBuilder of javax.ws.rs.core.Response
RuntimeVisibleAnnotations:
javax.ws.rs.ext.Provider()