Class ModelAndViewServerFilter

java.lang.Object
io.micronaut.spring.web.ModelAndViewServerFilter
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.http.filter.HttpFilter, io.micronaut.http.filter.HttpServerFilter

@Filter("/**") @Requires(classes={io.micronaut.views.ModelAndView.class,org.springframework.ui.Model.class}) @Requires(beans=io.micronaut.views.ViewsRenderer.class) public class ModelAndViewServerFilter extends Object implements io.micronaut.http.filter.HttpServerFilter
Makes it possible to use Spring MVC views API.
Since:
1.0
Author:
graemerocher
  • Field Summary

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

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelAndViewServerFilter(io.micronaut.views.ViewsFilter viewsFilter)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>>
    doFilter(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.filter.ServerFilterChain chain)
     
    int
     

    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.filter.HttpServerFilter

    doFilter
  • Constructor Details

    • ModelAndViewServerFilter

      public ModelAndViewServerFilter(io.micronaut.views.ViewsFilter viewsFilter)
      Default constructor.
      Parameters:
      viewsFilter - The views filter
  • Method Details

    • getOrder

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

      public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> doFilter(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.filter.ServerFilterChain chain)
      Specified by:
      doFilter in interface io.micronaut.http.filter.HttpServerFilter