Package com.vaadin.flow.server
Interface VaadinRequestInterceptor
- All Superinterfaces:
Serializable
Used to provide an around-like aspect option around request processing.
- Since:
- 24.2
- Author:
- Marcin Grzejszczak
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleException
(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Called when an exception occurredvoid
requestEnd
(VaadinRequest request, VaadinResponse response, VaadinSession session) Called in the finally block of processing a request.void
requestStart
(VaadinRequest request, VaadinResponse response) Called when request is about to be processed.
-
Method Details
-
requestStart
Called when request is about to be processed.- Parameters:
request
- requestresponse
- response
-
handleException
void handleException(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Called when an exception occurred- Parameters:
request
- requestresponse
- responsevaadinSession
- sessiont
- exception
-
requestEnd
Called in the finally block of processing a request. Will be called regardless of whether there was an exception or not.- Parameters:
request
- requestresponse
- responsesession
- session
-