public class HttpSessionId
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<java.lang.String> |
getSessionId(java.lang.String uri)
Scan
uri for a session ID. |
public static java.util.Optional<java.lang.String> getSessionId(java.lang.String uri)
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".