Class HttpSessionFilter

java.lang.Object
io.micronaut.session.http.HttpSessionFilter
All Implemented Interfaces:
io.micronaut.core.order.Ordered, io.micronaut.http.filter.HttpFilter, io.micronaut.http.filter.HttpServerFilter

@Filter("/**") public class HttpSessionFilter extends Object implements io.micronaut.http.filter.HttpServerFilter
A HttpServerFilter that resolves the current user Session if present and encodes the Session ID in the response.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

    • ORDER

      public static final Integer ORDER
      The order of the filter.
    • SESSION_ATTRIBUTE

      public static final CharSequence SESSION_ATTRIBUTE
      Constant for Micronaut SESSION attribute.
  • Constructor Details

  • 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