Package org.openqa.selenium.grid.router
Class Router
java.lang.Object
org.openqa.selenium.grid.router.Router
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.openqa.selenium.remote.http.HttpHandler
,org.openqa.selenium.remote.http.Routable
,HasReadyState
public class Router
extends Object
implements HasReadyState, org.openqa.selenium.remote.http.Routable, Closeable
A simple router that is aware of the selenium-protocol.
-
Constructor Summary
ConstructorsConstructorDescriptionRouter
(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, NewSessionQueue queue, Distributor distributor) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openqa.selenium.remote.http.Routable
with
-
Constructor Details
-
Router
public Router(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, NewSessionQueue queue, Distributor distributor)
-
-
Method Details
-
isReady
public boolean isReady()- Specified by:
isReady
in interfaceHasReadyState
-
matches
public boolean matches(org.openqa.selenium.remote.http.HttpRequest req) - Specified by:
matches
in interfaceorg.openqa.selenium.remote.http.Routable
-
execute
public org.openqa.selenium.remote.http.HttpResponse execute(org.openqa.selenium.remote.http.HttpRequest req) - Specified by:
execute
in interfaceorg.openqa.selenium.remote.http.HttpHandler
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-