Package com.vaadin.browserless
Interface JavaScriptDispatcher.Handler
- All Superinterfaces:
Serializable
- Enclosing class:
JavaScriptDispatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Receives each piece of JavaScript sent to the simulated client, to
simulate what the browser does with it or to capture it for a test.
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(PendingJavaScriptInvocation invocation) Reacts to an invocation that the client has received.
-
Method Details
-
handle
Reacts to an invocation that the client has received. Called for every invocation, in the order the server scheduled them; a handler ignores the ones it is not interested in.- Parameters:
invocation- the invocation the client received, not null
-