Class HttpRequestReceivedEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpRequestReceivedEvent
    extends io.micronaut.context.event.ApplicationEvent
    An event fired when an HttpRequest is received by the server. Not that the event is fired in a non-blocking manner and access to the request body is not provided. Consumers can use this event to trace the URI, headers and so on but should not perform I/O.
    Since:
    1.2.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpRequest<?> getSource()  
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HttpRequestReceivedEvent

        public HttpRequestReceivedEvent​(@NonNull
                                        HttpRequest<?> request)
        Parameters:
        request - The request. Never null.
    • Method Detail

      • getSource

        @NonNull
        public HttpRequest<?> getSource()
        Overrides:
        getSource in class java.util.EventObject