Class SessionSlot

  • 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>, org.openqa.selenium.remote.http.HttpHandler

    public class SessionSlot
    extends java.lang.Object
    implements org.openqa.selenium.remote.http.HttpHandler, java.util.function.Function<CreateSessionRequest,​org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,​ActiveSession>>, java.util.function.Predicate<org.openqa.selenium.Capabilities>
    • 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)  
      org.openqa.selenium.remote.http.HttpResponse execute​(org.openqa.selenium.remote.http.HttpRequest req)  
      java.util.UUID getId()  
      ActiveSession getSession()  
      org.openqa.selenium.Capabilities getStereotype()  
      boolean isAvailable()  
      boolean isSupportingCdp()  
      void release()  
      void reserve()  
      void stop()  
      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 org.openqa.selenium.remote.http.HttpHandler

        with
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • SessionSlot

        public SessionSlot​(EventBus bus,
                           org.openqa.selenium.Capabilities stereotype,
                           SessionFactory factory)
    • Method Detail

      • getId

        public java.util.UUID getId()
      • getStereotype

        public org.openqa.selenium.Capabilities getStereotype()
      • reserve

        public void reserve()
      • release

        public void release()
      • isAvailable

        public boolean isAvailable()
      • stop

        public void stop()
      • execute

        public org.openqa.selenium.remote.http.HttpResponse execute​(org.openqa.selenium.remote.http.HttpRequest req)
                                                             throws java.io.UncheckedIOException
        Specified by:
        execute in interface org.openqa.selenium.remote.http.HttpHandler
        Throws:
        java.io.UncheckedIOException
      • 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>>
      • isSupportingCdp

        public boolean isSupportingCdp()