Package io.micronaut.jaxrs.common
Interface JaxRsWriterInterceptorContextState
- All Known Implementing Classes:
JaxRsWriterInterceptorContextState.ClassicState
@Internal
public sealed interface JaxRsWriterInterceptorContextState
permits JaxRsWriterInterceptorContextState.ClassicState (not exhaustive)
State carried through a chain of
WriterInterceptor
calls. This allows
for lazily populating expensive-to-construct fields.- Since:
- 4.9.2
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Implementation with simple fields. -
Method Summary
-
Method Details
-
getEntity
Object getEntity()- Returns:
- The response entity
- See Also:
-
setEntity
- Parameters:
entity
- The response entity- See Also:
-
getOutputStream
OutputStream getOutputStream()- Returns:
- The response stream
- See Also:
-
setOutputStream
- Parameters:
outputStream
- The response stream- See Also:
-
getHeaders
MultivaluedMap<String,Object> getHeaders()- Returns:
- The response headers
- See Also:
-