Class ActiveSessionFactory

  • All Implemented Interfaces:
    java.util.function.Function<org.openqa.selenium.grid.data.CreateSessionRequest,​java.util.Optional<org.openqa.selenium.grid.session.ActiveSession>>, java.util.function.Predicate<org.openqa.selenium.Capabilities>, org.openqa.selenium.grid.session.SessionFactory

    public class ActiveSessionFactory
    extends java.lang.Object
    implements org.openqa.selenium.grid.session.SessionFactory
    Used to create new ActiveSession instances as required.
    • Constructor Summary

      Constructors 
      Constructor Description
      ActiveSessionFactory​(org.openqa.selenium.remote.tracing.Tracer tracer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.openqa.selenium.grid.session.ActiveSession> apply​(org.openqa.selenium.grid.data.CreateSessionRequest sessionRequest)  
      ActiveSessionFactory bind​(java.util.function.Predicate<org.openqa.selenium.Capabilities> onThis, org.openqa.selenium.grid.session.SessionFactory useThis)  
      protected java.lang.Iterable<DriverProvider> loadDriverProviders()  
      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

      • ActiveSessionFactory

        public ActiveSessionFactory​(org.openqa.selenium.remote.tracing.Tracer tracer)
    • Method Detail

      • bind

        public ActiveSessionFactory bind​(java.util.function.Predicate<org.openqa.selenium.Capabilities> onThis,
                                         org.openqa.selenium.grid.session.SessionFactory useThis)
      • loadDriverProviders

        protected java.lang.Iterable<DriverProvider> loadDriverProviders()
      • test

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

        public java.util.Optional<org.openqa.selenium.grid.session.ActiveSession> apply​(org.openqa.selenium.grid.data.CreateSessionRequest sessionRequest)
        Specified by:
        apply in interface java.util.function.Function<org.openqa.selenium.grid.data.CreateSessionRequest,​java.util.Optional<org.openqa.selenium.grid.session.ActiveSession>>