Class RemoteSession
- java.lang.Object
-
- org.openqa.selenium.grid.session.remote.RemoteSession
-
- All Implemented Interfaces:
ActiveSession
,HttpHandler
,WrapsDriver
- Direct Known Subclasses:
ServicedSession
public abstract class RemoteSession extends java.lang.Object implements ActiveSession
Abstract class designed to do things like protocol conversion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteSession.Factory<X>
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteSession(Dialect downstream, Dialect upstream, HttpHandler codec, SessionId id, java.util.Map<java.lang.String,java.lang.Object> capabilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
execute(HttpRequest req)
java.util.Map<java.lang.String,java.lang.Object>
getCapabilities()
Describe the current webdriver session's capabilities.Dialect
getDownstreamDialect()
TemporaryFilesystem
getFileSystem()
SessionId
getId()
Dialect
getUpstreamDialect()
WebDriver
getWrappedDriver()
-
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.grid.session.ActiveSession
stop
-
Methods inherited from interface org.openqa.selenium.remote.http.HttpHandler
with
-
-
-
-
Constructor Detail
-
RemoteSession
protected RemoteSession(Dialect downstream, Dialect upstream, HttpHandler codec, SessionId id, java.util.Map<java.lang.String,java.lang.Object> capabilities)
-
-
Method Detail
-
getId
public SessionId getId()
- Specified by:
getId
in interfaceActiveSession
-
getUpstreamDialect
public Dialect getUpstreamDialect()
- Specified by:
getUpstreamDialect
in interfaceActiveSession
-
getDownstreamDialect
public Dialect getDownstreamDialect()
- Specified by:
getDownstreamDialect
in interfaceActiveSession
-
getCapabilities
public java.util.Map<java.lang.String,java.lang.Object> getCapabilities()
Description copied from interface:ActiveSession
Describe the current webdriver session's capabilities.- Specified by:
getCapabilities
in interfaceActiveSession
-
getFileSystem
public TemporaryFilesystem getFileSystem()
- Specified by:
getFileSystem
in interfaceActiveSession
-
getWrappedDriver
public WebDriver getWrappedDriver()
- Specified by:
getWrappedDriver
in interfaceWrapsDriver
- Returns:
- The driver that contains this element.
-
execute
public HttpResponse execute(HttpRequest req) throws java.io.UncheckedIOException
- Specified by:
execute
in interfaceHttpHandler
- Throws:
java.io.UncheckedIOException
-
-