Class RelaySessionFactory

  • All Implemented Interfaces:
    java.util.function.Function<CreateSessionRequest,​org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,​ActiveSession>>, java.util.function.Predicate<org.openqa.selenium.Capabilities>, SessionFactory

    public class RelaySessionFactory
    extends java.lang.Object
    implements SessionFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      RelaySessionFactory​(org.openqa.selenium.remote.tracing.Tracer tracer, org.openqa.selenium.remote.http.HttpClient.Factory clientFactory, java.time.Duration sessionTimeout, java.net.URI serviceUri, java.net.URI serviceStatusUri, org.openqa.selenium.Capabilities stereotype)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,​ActiveSession> apply​(CreateSessionRequest sessionRequest)  
      boolean isServiceUp()  
      boolean test​(org.openqa.selenium.Capabilities capabilities)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • RelaySessionFactory

        public RelaySessionFactory​(org.openqa.selenium.remote.tracing.Tracer tracer,
                                   org.openqa.selenium.remote.http.HttpClient.Factory clientFactory,
                                   java.time.Duration sessionTimeout,
                                   java.net.URI serviceUri,
                                   java.net.URI serviceStatusUri,
                                   org.openqa.selenium.Capabilities stereotype)
    • Method Detail

      • test

        public boolean test​(org.openqa.selenium.Capabilities capabilities)
        Specified by:
        test in interface java.util.function.Predicate<org.openqa.selenium.Capabilities>
      • apply

        public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,​ActiveSession> apply​(CreateSessionRequest sessionRequest)
        Specified by:
        apply in interface java.util.function.Function<CreateSessionRequest,​org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,​ActiveSession>>
      • isServiceUp

        public boolean isServiceUp()