public class ExternalSessionKey
extends java.lang.Object
Constructor and Description |
---|
ExternalSessionKey(java.lang.String key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static ExternalSessionKey |
fromJSON(java.lang.String keyString) |
static ExternalSessionKey |
fromJsonResponseBody(java.lang.String responseBody)
Extract the external key from the server response for a selenium2 new session request.
|
static ExternalSessionKey |
fromResponseBody(java.lang.String responseBody)
extract the external key from the server response for a selenium1 new session request.
|
static ExternalSessionKey |
fromSe1Request(java.lang.String piece) |
static ExternalSessionKey |
fromString(java.lang.String keyString) |
static ExternalSessionKey |
fromWebDriverRequest(java.lang.String path)
extract the session xxx from http://host:port/a/b/c/session/xxx/...
|
java.lang.String |
getKey() |
int |
hashCode() |
java.lang.String |
toString() |
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String getKey()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ExternalSessionKey fromSe1Request(java.lang.String piece)
public static ExternalSessionKey fromWebDriverRequest(java.lang.String path)
path
- The path to the sessionpublic static ExternalSessionKey fromJsonResponseBody(java.lang.String responseBody)
responseBody
- the response body to parsepublic static ExternalSessionKey fromResponseBody(java.lang.String responseBody) throws NewSessionException
responseBody
- the response from the serverNewSessionException
- in case the server didn't send back a success result.public static ExternalSessionKey fromString(java.lang.String keyString)
public static ExternalSessionKey fromJSON(java.lang.String keyString)