Class Router

  • All Implemented Interfaces:
    org.openqa.selenium.remote.http.HttpHandler, org.openqa.selenium.remote.http.Routable, HasReadyState

    public class Router
    extends java.lang.Object
    implements HasReadyState, org.openqa.selenium.remote.http.Routable
    A simple router that is aware of the selenium-protocol.
    • Constructor Summary

      Constructors 
      Constructor Description
      Router​(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, SessionMap sessions, NewSessionQueuer queuer, 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 isReady()  
      boolean matches​(org.openqa.selenium.remote.http.HttpRequest req)  
      • 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 Detail

      • Router

        public Router​(org.openqa.selenium.remote.tracing.Tracer tracer,
                      org.openqa.selenium.remote.http.HttpClient.Factory clientFactory,
                      SessionMap sessions,
                      NewSessionQueuer queuer,
                      Distributor distributor)
    • Method Detail

      • matches

        public boolean matches​(org.openqa.selenium.remote.http.HttpRequest req)
        Specified by:
        matches in interface org.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 interface org.openqa.selenium.remote.http.HttpHandler