public abstract class SessionMap extends java.lang.Object implements java.util.function.Predicate<org.openqa.selenium.remote.http.HttpRequest>, CommandHandler
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. |
| Constructor and Description |
|---|
SessionMap() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
add(Session session) |
void |
execute(org.openqa.selenium.remote.http.HttpRequest req,
org.openqa.selenium.remote.http.HttpResponse resp) |
abstract Session |
get(org.openqa.selenium.remote.SessionId id) |
abstract void |
remove(org.openqa.selenium.remote.SessionId id) |
boolean |
test(org.openqa.selenium.remote.http.HttpRequest req) |
public abstract boolean add(Session session)
public abstract Session get(org.openqa.selenium.remote.SessionId id) throws org.openqa.selenium.NoSuchSessionException
org.openqa.selenium.NoSuchSessionExceptionpublic abstract void remove(org.openqa.selenium.remote.SessionId id)
public boolean test(org.openqa.selenium.remote.http.HttpRequest req)
test in interface java.util.function.Predicate<org.openqa.selenium.remote.http.HttpRequest>public void execute(org.openqa.selenium.remote.http.HttpRequest req,
org.openqa.selenium.remote.http.HttpResponse resp)
throws java.io.IOException
execute in interface CommandHandlerjava.io.IOException