Package com.vaadin.flow.server.dau
Class DAUVaadinRequestInterceptor
java.lang.Object
com.vaadin.flow.server.dau.DAUVaadinRequestInterceptor
- All Implemented Interfaces:
ServiceDestroyListener,VaadinRequestInterceptor,VaadinServiceInitListener,Serializable,EventListener
public class DAUVaadinRequestInterceptor
extends Object
implements VaadinRequestInterceptor, VaadinServiceInitListener, ServiceDestroyListener
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 TypeMethodDescriptionvoidhandleException(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Called when an exception occurredvoidrequestEnd(VaadinRequest request, VaadinResponse response, VaadinSession session) Called in the finally block of processing a request.voidrequestStart(VaadinRequest request, VaadinResponse response) Called when request is about to be processed.voidInvoked when a service is destroyed.voidserviceInit(ServiceInitEvent event) Run when aVaadinServiceinstance is initialized.
-
Constructor Details
-
DAUVaadinRequestInterceptor
public DAUVaadinRequestInterceptor(DeploymentConfiguration deploymentConfiguration, DAUCustomizer dauCustomizer)
-
-
Method Details
-
requestStart
Description copied from interface:VaadinRequestInterceptorCalled when request is about to be processed.- Specified by:
requestStartin interfaceVaadinRequestInterceptor- Parameters:
request- requestresponse- response
-
handleException
public void handleException(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Description copied from interface:VaadinRequestInterceptorCalled when an exception occurred- Specified by:
handleExceptionin interfaceVaadinRequestInterceptor- Parameters:
request- requestresponse- responsevaadinSession- sessiont- exception
-
requestEnd
Description copied from interface:VaadinRequestInterceptorCalled in the finally block of processing a request. Will be called regardless of whether there was an exception or not.- Specified by:
requestEndin interfaceVaadinRequestInterceptor- Parameters:
request- requestresponse- responsesession- session
-
serviceInit
Description copied from interface:VaadinServiceInitListenerRun when aVaadinServiceinstance is initialized.- Specified by:
serviceInitin interfaceVaadinServiceInitListener- Parameters:
event- the service initialization event
-
serviceDestroy
Description copied from interface:ServiceDestroyListenerInvoked when a service is destroyed.- Specified by:
serviceDestroyin interfaceServiceDestroyListener- Parameters:
event- the event
-