com.vaadin.flow.server.dau.
Class DAUVaadinRequestInterceptor
All Implemented Interfaces:
ServiceDestroyListener
, VaadinRequestInterceptor
, VaadinServiceInitListener
, Serializable
, EventListener
Request interceptor that collects daily active users and stores them in the in-memory cache. For internal use only. May be renamed or removed in a future release.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDAUVaadinRequestInterceptor
(DeploymentConfiguration deploymentConfiguration, DAUCustomizer dauCustomizer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleException
(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Called when an exception occurred
void
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.
void
Invoked when a service is destroyed.
void
serviceInit
(ServiceInitEvent event) Run when a
VaadinService
instance is initialized.
-
Constructor Details
-
DAUVaadinRequestInterceptor
public DAUVaadinRequestInterceptor(DeploymentConfiguration deploymentConfiguration, DAUCustomizer dauCustomizer)
-
-
Method Details
-
requestStart
Description copied from interface:
VaadinRequestInterceptor
Called when request is about to be processed.
Specified by:
requestStart
in interfaceVaadinRequestInterceptor
Parameters:
request
- requestresponse
- response -
handleException
public void handleException(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Description copied from interface:
VaadinRequestInterceptor
Called when an exception occurred
Specified by:
handleException
in interfaceVaadinRequestInterceptor
Parameters:
request
- requestresponse
- responsevaadinSession
- sessiont
- exception -
requestEnd
Description copied from interface:
VaadinRequestInterceptor
Called in the finally block of processing a request. Will be called regardless of whether there was an exception or not.
Specified by:
requestEnd
in interfaceVaadinRequestInterceptor
Parameters:
request
- requestresponse
- responsesession
- session -
serviceInit
Description copied from interface:
VaadinServiceInitListener
Run when a
VaadinService
instance is initialized.Specified by:
serviceInit
in interfaceVaadinServiceInitListener
Parameters:
event
- the service initialization event -
serviceDestroy
Description copied from interface:
ServiceDestroyListener
Invoked when a service is destroyed.
Specified by:
serviceDestroy
in interfaceServiceDestroyListener
Parameters:
event
- the event
-