Package io.micronaut.http.context.event
Class HttpRequestReceivedEvent
- java.lang.Object
-
- java.util.EventObject
-
- io.micronaut.context.event.ApplicationEvent
-
- io.micronaut.http.context.event.HttpRequestReceivedEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class HttpRequestReceivedEvent extends io.micronaut.context.event.ApplicationEventAn event fired when anHttpRequestis 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
-
-
Constructor Summary
Constructors Constructor Description HttpRequestReceivedEvent(HttpRequest<?> request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest<?>getSource()
-
-
-
Constructor Detail
-
HttpRequestReceivedEvent
public HttpRequestReceivedEvent(@NonNull HttpRequest<?> request)- Parameters:
request- The request. Never null.
-
-
Method Detail
-
getSource
@NonNull public HttpRequest<?> getSource()
- Overrides:
getSourcein classjava.util.EventObject
-
-