Package io.micronaut.http.body
Class DefaultMessageBodyHandlerRegistry
java.lang.Object
io.micronaut.http.body.DefaultMessageBodyHandlerRegistry
- All Implemented Interfaces:
MessageBodyHandlerRegistry
Stores message body readers and writers.
- Since:
- 4.0.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.http.body.MessageBodyHandlerRegistry
EMPTY
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<MessageBodyReader<T>>
findReader
(Argument<T> type, List<MediaType> mediaTypes) Find a reader for the type and annotation metadata at declaration point.protected <T> MessageBodyReader<T>
findReaderImpl
(Argument<T> type, List<MediaType> mediaTypes) <T> Optional<MessageBodyWriter<T>>
findWriter
(Argument<T> type, List<MediaType> mediaTypes) Find a writer for the type and annotation metadata at declaration point.protected <T> MessageBodyWriter<T>
findWriterImpl
(Argument<T> type, List<MediaType> mediaTypes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.body.MessageBodyHandlerRegistry
findReader, findReader, findWriter, findWriter, getReader, getWriter
-
Method Details
-
findReaderImpl
-
findWriterImpl
-
findReader
Description copied from interface:MessageBodyHandlerRegistry
Find a reader for the type and annotation metadata at declaration point.- Specified by:
findReader
in interfaceMessageBodyHandlerRegistry
- Type Parameters:
T
- The generic type- Parameters:
type
- The typemediaTypes
- The media type- Returns:
- A message body reader if it is existing.
-
findWriter
Description copied from interface:MessageBodyHandlerRegistry
Find a writer for the type and annotation metadata at declaration point.- Specified by:
findWriter
in interfaceMessageBodyHandlerRegistry
- Type Parameters:
T
- The generic type- Parameters:
type
- The typemediaTypes
- The media type- Returns:
- A message body writer if it is existing.
-