public class NewSessionPayload
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static NewSessionPayload |
create(org.openqa.selenium.Capabilities caps) |
static NewSessionPayload |
create(java.util.Map<java.lang.String,?> source) |
static NewSessionPayload |
create(java.io.Reader source) |
com.google.common.collect.ImmutableSet<Dialect> |
getDownstreamDialects() |
java.util.stream.Stream<org.openqa.selenium.Capabilities> |
stream()
Stream the
Capabilities encoded in the payload used to create this instance. |
java.lang.String |
toString() |
void |
writeTo(java.lang.Appendable appendable) |
public static NewSessionPayload create(org.openqa.selenium.Capabilities caps)
public static NewSessionPayload create(java.util.Map<java.lang.String,?> source)
public static NewSessionPayload create(java.io.Reader source)
public void writeTo(java.lang.Appendable appendable)
throws java.io.IOException
java.io.IOExceptionpublic java.util.stream.Stream<org.openqa.selenium.Capabilities> stream()
Capabilities encoded in the payload used to create this instance. The
Stream will start with a Capabilities 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.
public com.google.common.collect.ImmutableSet<Dialect> getDownstreamDialects()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic java.lang.String toString()
toString in class java.lang.Object