Class HttpSessionId


  • public class HttpSessionId
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<java.lang.String> getSessionId​(java.lang.String uri)
      Scan uri for a session ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSessionId

        public static java.util.Optional<java.lang.String> getSessionId​(java.lang.String uri)
        Scan uri for a session ID. This is identified by scanning for "{code /session/}" and then extracting the next fragment of the URL. This means that both "/session/foo" and "/wd/hub/session/foo/bar" would both identify the session id as being "foo".