Package org.openqa.selenium.grid.router
Class Router
java.lang.Object
org.openqa.selenium.grid.router.Router
- All Implemented Interfaces:
HttpHandler
,Routable
,HasReadyState
A simple router that is aware of the selenium-protocol.
-
Constructor Summary
ConstructorDescriptionRouter
(Tracer tracer, HttpClient.Factory clientFactory, SessionMap sessions, NewSessionQueue queue, Distributor distributor) -
Method Summary
Modifier and TypeMethodDescriptionexecute
(HttpRequest req) boolean
isReady()
boolean
matches
(HttpRequest req)
-
Constructor Details
-
Router
public Router(Tracer tracer, HttpClient.Factory clientFactory, SessionMap sessions, NewSessionQueue queue, Distributor distributor)
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReady
in interfaceHasReadyState
-
matches
-
execute
- Specified by:
execute
in interfaceHttpHandler
-