Package io.micronaut.jaxrs.common
Class JaxRsInterceptedWrite<T,S extends JaxRsWriterInterceptorContextState>
java.lang.Object
io.micronaut.jaxrs.common.JaxRsInterceptedWrite<T,S>
- Type Parameters:
T
- The typeS
- The context state implementation
@Internal
public abstract class JaxRsInterceptedWrite<T,S extends JaxRsWriterInterceptorContextState>
extends Object
The JAX-RS body write interceptor.
- Since:
- 4.9.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorsConstructorDescriptionJaxRsInterceptedWrite
(List<BeanRegistration<WriterInterceptor>> writerInterceptorsRegistrations, NameBindingPredicate nameBindingPredicate) JaxRsInterceptedWrite
(List<WriterInterceptor> writerInterceptors) -
Method Summary
-
Constructor Details
-
JaxRsInterceptedWrite
public JaxRsInterceptedWrite(List<BeanRegistration<WriterInterceptor>> writerInterceptorsRegistrations, NameBindingPredicate nameBindingPredicate) -
JaxRsInterceptedWrite
-
-
Method Details
-
intercept
public final void intercept(@NonNull @NonNull Argument<T> type, @NonNull @NonNull MediaType mediaType, S state) throws CodecException - Throws:
CodecException
-
writeToAfterInterception
protected abstract void writeToAfterInterception(@NonNull @NonNull Argument<Object> argument, @NonNull @NonNull MediaType mediaType, S state) Write to after the interception. Some of the value might have been changed.- Parameters:
argument
- The argumentmediaType
- The media typestate
- The state (same as passed intointercept(io.micronaut.core.type.Argument<T>, io.micronaut.http.MediaType, S)
)
-