Class SessionSlot
java.lang.Object
org.openqa.selenium.grid.node.local.SessionSlot
- All Implemented Interfaces:
Function<CreateSessionRequest,
,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException, ActiveSession>> Predicate<org.openqa.selenium.Capabilities>
,org.openqa.selenium.remote.http.HttpHandler
public class SessionSlot
extends Object
implements org.openqa.selenium.remote.http.HttpHandler, Function<CreateSessionRequest,org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession>>, Predicate<org.openqa.selenium.Capabilities>
-
Constructor Summary
ConstructorsConstructorDescriptionSessionSlot
(EventBus bus, org.openqa.selenium.Capabilities stereotype, SessionFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionorg.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) getId()
org.openqa.selenium.Capabilities
boolean
boolean
boolean
boolean
boolean
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 org.openqa.selenium.remote.http.HttpHandler
with
-
Constructor Details
-
SessionSlot
public SessionSlot(EventBus bus, org.openqa.selenium.Capabilities stereotype, SessionFactory factory)
-
-
Method Details
-
getId
-
getStereotype
public org.openqa.selenium.Capabilities getStereotype() -
reserve
public void reserve() -
release
public void release() -
isAvailable
public boolean isAvailable() -
getSession
-
stop
public void stop() -
execute
public org.openqa.selenium.remote.http.HttpResponse execute(org.openqa.selenium.remote.http.HttpRequest req) throws UncheckedIOException - Specified by:
execute
in interfaceorg.openqa.selenium.remote.http.HttpHandler
- Throws:
UncheckedIOException
-
test
public boolean test(org.openqa.selenium.Capabilities capabilities) -
apply
public org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException,ActiveSession> apply(CreateSessionRequest sessionRequest) - Specified by:
apply
in interfaceFunction<CreateSessionRequest,
org.openqa.selenium.internal.Either<org.openqa.selenium.WebDriverException, ActiveSession>>
-
isSupportingCdp
public boolean isSupportingCdp() -
isSupportingBiDi
public boolean isSupportingBiDi() -
hasRelayFactory
public boolean hasRelayFactory() -
isRelayServiceUp
public boolean isRelayServiceUp()
-