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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanexecute(HttpRequest req) abstract Sessionbooleanmatches(HttpRequest req) abstract voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
executein interfaceHttpHandler
-