Package io.micronaut.jaxrs.common
Class JaxRsInterceptedRead<T>
java.lang.Object
io.micronaut.jaxrs.common.JaxRsInterceptedRead<T>
- Type Parameters:
T
- The type
The JAX-RS body read interceptor.
- Since:
- 4.9.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionJaxRsInterceptedRead
(List<BeanRegistration<ReaderInterceptor>> readerInterceptorsRegistrations, NameBindingPredicate nameBindingPredicate) JaxRsInterceptedRead
(List<ReaderInterceptor> readerInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionfinal T
intercept
(@NonNull Argument<T> type, @Nullable MediaType mediaType, @NonNull Headers httpHeaders, @NonNull InputStream inputStream) protected abstract T
readFromAfterInterception
(@NonNull Argument<Object> type, @Nullable MediaType mediaType, @NonNull Headers httpHeaders, @NonNull InputStream inputStream) Read the value after the interception.
-
Constructor Details
-
JaxRsInterceptedRead
public JaxRsInterceptedRead(List<BeanRegistration<ReaderInterceptor>> readerInterceptorsRegistrations, NameBindingPredicate nameBindingPredicate) -
JaxRsInterceptedRead
-
-
Method Details
-
intercept
public final T intercept(@NonNull @NonNull Argument<T> type, @Nullable @Nullable MediaType mediaType, @NonNull @NonNull Headers httpHeaders, @NonNull @NonNull InputStream inputStream) throws CodecException - Throws:
CodecException
-
readFromAfterInterception
protected abstract T readFromAfterInterception(@NonNull @NonNull Argument<Object> type, @Nullable @Nullable MediaType mediaType, @NonNull @NonNull Headers httpHeaders, @NonNull @NonNull InputStream inputStream) Read the value after the interception. Some of the value might have been changed.- Parameters:
type
- The argumentmediaType
- The media typehttpHeaders
- The headersinputStream
- The input stream- Returns:
- The entity
-