Class JaxRsInterceptedRead<T>

java.lang.Object
io.micronaut.jaxrs.common.JaxRsInterceptedRead<T>
Type Parameters:
T - The type

@Internal public abstract class JaxRsInterceptedRead<T> extends Object
The JAX-RS body read interceptor.
Since:
4.9.0
Author:
Denis Stepanov
  • Constructor Details

  • Method Details

    • intercept

      public final T intercept(@NonNull Argument<T> type, @Nullable MediaType mediaType, @NonNull Headers httpHeaders, @NonNull InputStream inputStream) throws CodecException
      Throws:
      CodecException
    • readFromAfterInterception

      protected abstract T readFromAfterInterception(@NonNull Argument<Object> type, @Nullable MediaType mediaType, @NonNull Headers httpHeaders, @NonNull InputStream inputStream)
      Read the value after the interception. Some of the value might have been changed.
      Parameters:
      type - The argument
      mediaType - The media type
      httpHeaders - The headers
      inputStream - The input stream
      Returns:
      The entity