Class JsonViewServerFilter

java.lang.Object
io.micronaut.http.server.netty.jackson.JsonViewServerFilter
All Implemented Interfaces:
Ordered

@Requires(beans=JsonConfiguration.class) @Requires(classes=com.fasterxml.jackson.annotation.JsonView.class) @Requires(property="jackson.json-view.enabled") @ServerFilter("/**") @Internal public class JsonViewServerFilter extends Object implements Ordered
Jackson @JsonView filter.
Since:
1.1
Author:
mmindenhall, graemerocher
  • Field Details

    • PROPERTY_JSON_VIEW_ENABLED

      public static final String PROPERTY_JSON_VIEW_ENABLED
      Property used to specify whether JSON view is enabled.
      See Also:
  • Constructor Details

    • JsonViewServerFilter

      public JsonViewServerFilter(io.micronaut.http.server.netty.jackson.JsonViewCodecResolver jsonViewCodecResolver, @Named("blocking") ExecutorService executorService, ConversionService conversionService)
      Parameters:
      jsonViewCodecResolver - The JSON view codec resolver.
      executorService - The I/O executor service
      conversionService - The conversion service
  • Method Details