Class JsonViewServerFilter

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

@Requires(beans=io.micronaut.json.JsonConfiguration.class) @Requires(classes=com.fasterxml.jackson.annotation.JsonView.class) @Requires(property="jackson.json-view.enabled") @ServerFilter("/**") @Internal public class JsonViewServerFilter extends Object implements io.micronaut.core.order.Ordered
Jackson @JsonView filter.
Since:
1.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Property used to specify whether JSON view is enabled.

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    JsonViewServerFilter(io.micronaut.http.server.netty.jackson.JsonViewCodecResolver jsonViewCodecResolver, ExecutorService executorService, io.micronaut.core.convert.ConversionService conversionService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.reactivestreams.Publisher<? extends io.micronaut.http.MutableHttpResponse<?>>
    doFilter(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse<?> response)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, io.micronaut.core.convert.ConversionService conversionService)
      Parameters:
      jsonViewCodecResolver - The JSON view codec resolver.
      executorService - The I/O executor service
      conversionService - The conversion service
  • Method Details

    • doFilter

      @ResponseFilter public final org.reactivestreams.Publisher<? extends io.micronaut.http.MutableHttpResponse<?>> doFilter(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.MutableHttpResponse<?> response)
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered