Class ResponseTypeUnwrapperBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.resteasy.reactive.server.spi.ResponseTypeUnwrapperBuildItem

public final class ResponseTypeUnwrapperBuildItem extends io.quarkus.builder.item.MultiBuildItem
Registers a parameterized wrapper type (e.g. ResponseEntity<T>) whose first type argument should be treated as the actual response body type for reflection-free Jackson serializer generation.

When a REST endpoint returns one of these wrapper types, the serializer generator will extract the type parameter and generate a serializer for the inner type instead of the wrapper itself.

  • Constructor Details

    • ResponseTypeUnwrapperBuildItem

      public ResponseTypeUnwrapperBuildItem(org.jboss.jandex.DotName wrapperType)
  • Method Details

    • getWrapperType

      public org.jboss.jandex.DotName getWrapperType()