Class ServicedSession.Factory
- java.lang.Object
-
- org.openqa.selenium.grid.session.remote.RemoteSession.Factory<org.openqa.selenium.remote.service.DriverService>
-
- org.openqa.selenium.grid.session.remote.ServicedSession.Factory
-
- All Implemented Interfaces:
java.util.function.Function<CreateSessionRequest,java.util.Optional<ActiveSession>>
,java.util.function.Predicate<org.openqa.selenium.Capabilities>
,SessionFactory
- Enclosing class:
- ServicedSession
public static class ServicedSession.Factory extends RemoteSession.Factory<org.openqa.selenium.remote.service.DriverService>
-
-
Constructor Summary
Constructors Constructor Description Factory(java.util.function.Predicate<org.openqa.selenium.Capabilities> key, java.lang.String serviceClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ActiveSession>
apply(CreateSessionRequest sessionRequest)
protected ServicedSession
newActiveSession(org.openqa.selenium.remote.service.DriverService service, org.openqa.selenium.remote.Dialect downstream, org.openqa.selenium.remote.Dialect upstream, org.openqa.selenium.remote.http.HttpHandler codec, org.openqa.selenium.remote.SessionId id, java.util.Map<java.lang.String,java.lang.Object> capabilities)
boolean
test(org.openqa.selenium.Capabilities capabilities)
java.lang.String
toString()
-
Methods inherited from class org.openqa.selenium.grid.session.remote.RemoteSession.Factory
performHandshake
-
-
-
-
Method Detail
-
test
public boolean test(org.openqa.selenium.Capabilities capabilities)
-
apply
public java.util.Optional<ActiveSession> apply(CreateSessionRequest sessionRequest)
-
newActiveSession
protected ServicedSession newActiveSession(org.openqa.selenium.remote.service.DriverService service, org.openqa.selenium.remote.Dialect downstream, org.openqa.selenium.remote.Dialect upstream, org.openqa.selenium.remote.http.HttpHandler codec, org.openqa.selenium.remote.SessionId id, java.util.Map<java.lang.String,java.lang.Object> capabilities)
- Specified by:
newActiveSession
in classRemoteSession.Factory<org.openqa.selenium.remote.service.DriverService>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-