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. |
void |
writeTo(java.lang.Appendable appendable) |
public static NewSessionPayload create(org.openqa.selenium.Capabilities caps) throws java.io.IOException
java.io.IOExceptionpublic static NewSessionPayload create(java.util.Map<java.lang.String,?> source) throws java.io.IOException
java.io.IOExceptionpublic static NewSessionPayload create(java.io.Reader source) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(java.lang.Appendable appendable)
throws java.io.IOException
java.io.IOExceptionpublic java.util.stream.Stream<org.openqa.selenium.Capabilities> stream()
throws java.io.IOException
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.
java.io.IOExceptionpublic com.google.common.collect.ImmutableSet<Dialect> getDownstreamDialects()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException