Package org.openqa.selenium.remote
Class NewSessionPayload
- java.lang.Object
-
- org.openqa.selenium.remote.NewSessionPayload
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class NewSessionPayload extends java.lang.Object implements java.io.Closeable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static NewSessionPayload
create(java.io.Reader source)
static NewSessionPayload
create(java.util.Map<java.lang.String,?> source)
static NewSessionPayload
create(org.openqa.selenium.Capabilities caps)
java.util.Set<Dialect>
getDownstreamDialects()
java.util.Map<java.lang.String,java.lang.Object>
getMetadata()
java.util.stream.Stream<org.openqa.selenium.Capabilities>
stream()
Stream theCapabilities
encoded in the payload used to create this instance.java.lang.String
toString()
void
writeTo(java.lang.Appendable appendable)
-
-
-
Method Detail
-
create
public static NewSessionPayload create(org.openqa.selenium.Capabilities caps)
-
create
public static NewSessionPayload create(java.util.Map<java.lang.String,?> source)
-
create
public static NewSessionPayload create(java.io.Reader source)
-
writeTo
public void writeTo(java.lang.Appendable appendable) throws java.io.IOException
- Throws:
java.io.IOException
-
stream
public java.util.stream.Stream<org.openqa.selenium.Capabilities> stream()
Stream theCapabilities
encoded in the payload used to create this instance. TheStream
will start with aCapabilities
object matching the OSS capabilities, and will then expand each of the "firstMatch
" and "alwaysMatch
" contents as defined in the W3C WebDriver spec.The OSS
Capabilities
are listed first because converting the OSS capabilities to the equivalent W3C capabilities isn't particularly easy, so it's hoped that this approach gives us the most compatible implementation.
-
getDownstreamDialects
public java.util.Set<Dialect> getDownstreamDialects()
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-