Package org.openqa.selenium.grid.router
Class Router
java.lang.Object
org.openqa.selenium.grid.router.Router
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpHandler,Routable,HasReadyState
A simple router that is aware of the selenium-protocol.
-
Constructor Summary
ConstructorsConstructorDescriptionRouter(Tracer tracer, HttpClient.Factory clientFactory, SessionMap sessions, NewSessionQueue queue, Distributor distributor) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()execute(HttpRequest req) booleanisReady()booleanmatches(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:
isReadyin interfaceHasReadyState
-
matches
-
execute
- Specified by:
executein interfaceHttpHandler
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-