Class DefaultCustomizableResponseTypeHandlerRegistry
- java.lang.Object
-
- io.micronaut.http.server.netty.types.DefaultCustomizableResponseTypeHandlerRegistry
-
- All Implemented Interfaces:
NettyCustomizableResponseTypeHandlerRegistry
@Internal public class DefaultCustomizableResponseTypeHandlerRegistry extends java.lang.Object implements NettyCustomizableResponseTypeHandlerRegistry
Registry ofNettyCustomizableResponseTypeHandlerinstances.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomizableResponseTypeHandlerRegistry(NettyCustomizableResponseTypeHandler... typeHandlers)DefaultCustomizableResponseTypeHandlerRegistry(java.util.List<NettyCustomizableResponseTypeHandler> typeHandlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<NettyCustomizableResponseTypeHandler>findTypeHandler(java.lang.Class<?> type)Finds the first type handler that supports the given type.
-
-
-
Constructor Detail
-
DefaultCustomizableResponseTypeHandlerRegistry
public DefaultCustomizableResponseTypeHandlerRegistry(NettyCustomizableResponseTypeHandler... typeHandlers)
- Parameters:
typeHandlers- The Netty customizable response type handlers
-
DefaultCustomizableResponseTypeHandlerRegistry
public DefaultCustomizableResponseTypeHandlerRegistry(java.util.List<NettyCustomizableResponseTypeHandler> typeHandlers)
- Parameters:
typeHandlers- The Netty customizable response type handlers
-
-
Method Detail
-
findTypeHandler
public java.util.Optional<NettyCustomizableResponseTypeHandler> findTypeHandler(java.lang.Class<?> type)
Description copied from interface:NettyCustomizableResponseTypeHandlerRegistryFinds the first type handler that supports the given type.- Specified by:
findTypeHandlerin interfaceNettyCustomizableResponseTypeHandlerRegistry- Parameters:
type- The type to search for- Returns:
- An optional
NettyCustomizableResponseTypeHandler - See Also:
NettyCustomizableResponseTypeHandler.supports(Class)
-
-