Class NewSessionPayload

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class NewSessionPayload
    extends java.lang.Object
    implements java.io.Closeable
    • Method Detail

      • create

        public static NewSessionPayload create​(java.util.Map<java.lang.String,​?> source)
      • writeTo

        public void writeTo​(java.lang.Appendable appendable)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • stream

        public java.util.stream.Stream<Capabilities> stream()
        Stream the 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.

      • 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 interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object