Class SessionMap
java.lang.Object
org.openqa.selenium.grid.sessionmap.SessionMap
- All Implemented Interfaces:
HttpHandler
,Routable
,HasReadyState
- Direct Known Subclasses:
LocalSessionMap
,NullSessionMap
,RemoteSessionMap
Provides a stable API for looking up where on the Grid a particular webdriver instance is
running.
This class responds to the following URLs:
Verb | URL Template | Meaning |
---|---|---|
DELETE | /se/grid/session/{sessionId} | Removes a URI from the session map. Calling this method more than once for the same
SessionId will not throw an error. |
GET | /se/grid/session/{sessionId} | Retrieves the URI associated the SessionId , or throws a
NoSuchSessionException should the session not be present. |
POST | /se/grid/session/{sessionId} | Registers the session with session map. In theory, the session map never expires a session from its mappings, but realistically, sessions may end up being removed for many reasons. |
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
execute
(HttpRequest req) abstract Session
boolean
matches
(HttpRequest req) abstract void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openqa.selenium.status.HasReadyState
isReady
-
Field Details
-
tracer
-
-
Constructor Details
-
SessionMap
-
-
Method Details
-
add
-
get
- Throws:
NoSuchSessionException
-
remove
-
getUri
- Throws:
NoSuchSessionException
-
matches
-
execute
- Specified by:
execute
in interfaceHttpHandler
-