public class io.dropwizard.jersey.validation.JerseyViolationExceptionMapper implements javax.ws.rs.ext.ExceptionMapper<io.dropwizard.jersey.validation.JerseyViolationException>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.jersey.validation.JerseyViolationExceptionMapper
super_class: java.lang.Object
{
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/validation/JerseyViolationExceptionMapper;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.jersey.validation.JerseyViolationExceptionMapper.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 java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/jersey/validation/JerseyViolationExceptionMapper;
public javax.ws.rs.core.Response toResponse(io.dropwizard.jersey.validation.JerseyViolationException);
descriptor: (Lio/dropwizard/jersey/validation/JerseyViolationException;)Ljavax/ws/rs/core/Response;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: getstatic io.dropwizard.jersey.validation.JerseyViolationExceptionMapper.LOGGER:Lorg/slf4j/Logger;
ldc "Object validation failure"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
1: aload 1
invokevirtual io.dropwizard.jersey.validation.JerseyViolationException.getConstraintViolations:()Ljava/util/Set;
astore 2
start local 2 2: aload 1
invokevirtual io.dropwizard.jersey.validation.JerseyViolationException.getInvocable:()Lorg/glassfish/jersey/server/model/Invocable;
astore 3
start local 3 3: aload 1
invokevirtual io.dropwizard.jersey.validation.JerseyViolationException.getConstraintViolations:()Ljava/util/Set;
invokestatic com.google.common.collect.FluentIterable.from:(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;
4: aload 3
invokedynamic apply(Lorg/glassfish/jersey/server/model/Invocable;)Lcom/google/common/base/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;
io/dropwizard/jersey/validation/JerseyViolationExceptionMapper.lambda$0(Lorg/glassfish/jersey/server/model/Invocable;Ljavax/validation/ConstraintViolation;)Ljava/lang/String; (6)
(Ljavax/validation/ConstraintViolation;)Ljava/lang/String;
invokevirtual com.google.common.collect.FluentIterable.transform:(Lcom/google/common/base/Function;)Lcom/google/common/collect/FluentIterable;
invokevirtual com.google.common.collect.FluentIterable.toList:()Lcom/google/common/collect/ImmutableList;
5: astore 4
start local 4 6: aload 2
aload 3
invokestatic io.dropwizard.jersey.validation.ConstraintMessage.determineStatus:(Ljava/util/Set;Lorg/glassfish/jersey/server/model/Invocable;)I
istore 5
start local 5 7: iload 5
invokestatic javax.ws.rs.core.Response.status:(I)Ljavax/ws/rs/core/Response$ResponseBuilder;
8: new io.dropwizard.jersey.validation.ValidationErrorMessage
dup
aload 4
invokespecial io.dropwizard.jersey.validation.ValidationErrorMessage.<init>:(Lcom/google/common/collect/ImmutableList;)V
invokevirtual javax.ws.rs.core.Response$ResponseBuilder.entity:(Ljava/lang/Object;)Ljavax/ws/rs/core/Response$ResponseBuilder;
9: invokevirtual javax.ws.rs.core.Response$ResponseBuilder.build:()Ljavax/ws/rs/core/Response;
10: areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/dropwizard/jersey/validation/JerseyViolationExceptionMapper;
0 11 1 exception Lio/dropwizard/jersey/validation/JerseyViolationException;
2 11 2 violations Ljava/util/Set<Ljavax/validation/ConstraintViolation<*>;>;
3 11 3 invocable Lorg/glassfish/jersey/server/model/Invocable;
6 11 4 errors Lcom/google/common/collect/ImmutableList<Ljava/lang/String;>;
7 11 5 status I
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 io.dropwizard.jersey.validation.JerseyViolationException
invokevirtual io.dropwizard.jersey.validation.JerseyViolationExceptionMapper.toResponse:(Lio/dropwizard/jersey/validation/JerseyViolationException;)Ljavax/ws/rs/core/Response;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$0(org.glassfish.jersey.server.model.Invocable, javax.validation.ConstraintViolation);
descriptor: (Lorg/glassfish/jersey/server/model/Invocable;Ljavax/validation/ConstraintViolation;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokestatic io.dropwizard.jersey.validation.ConstraintMessage.getMessage:(Ljavax/validation/ConstraintViolation;Lorg/glassfish/jersey/server/model/Invocable;)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 violation Ljavax/validation/ConstraintViolation<*>;
}
Signature: Ljava/lang/Object;Ljavax/ws/rs/ext/ExceptionMapper<Lio/dropwizard/jersey/validation/JerseyViolationException;>;
SourceFile: "JerseyViolationExceptionMapper.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract ResponseBuilder = javax.ws.rs.core.Response$ResponseBuilder of javax.ws.rs.core.Response
RuntimeVisibleAnnotations:
javax.ws.rs.ext.Provider()