Package org.openqa.selenium.grid.router
Class Router
- java.lang.Object
-
- org.openqa.selenium.grid.router.Router
-
- All Implemented Interfaces:
org.openqa.selenium.remote.http.HttpHandler
,org.openqa.selenium.remote.http.Routable
public class Router extends java.lang.Object implements org.openqa.selenium.remote.http.Routable, org.openqa.selenium.remote.http.HttpHandler
A simple router that is aware of the selenium-protocol.
-
-
Constructor Summary
Constructors Constructor Description Router(io.opentracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, Distributor distributor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.remote.http.HttpResponse
execute(org.openqa.selenium.remote.http.HttpRequest req)
boolean
matches(org.openqa.selenium.remote.http.HttpRequest req)
-
-
-
Constructor Detail
-
Router
public Router(io.opentracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, Distributor distributor)
-
-
Method Detail
-
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
-
-