public class ExternalSessionKey extends Object
Constructor and Description |
---|
ExternalSessionKey(String key) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ExternalSessionKey |
fromJSON(String keyString) |
static ExternalSessionKey |
fromJsonResponseBody(String responseBody)
Extract the external key from the server response for a selenium2 new session request.
|
static ExternalSessionKey |
fromResponseBody(String responseBody)
extract the external key from the server response for a selenium1 new session request.
|
static ExternalSessionKey |
fromSe1Request(String piece) |
static ExternalSessionKey |
fromString(String keyString) |
static ExternalSessionKey |
fromWebDriverRequest(String path)
extract the session xxx from http://host:port/a/b/c/session/xxx/...
|
String |
getKey() |
int |
hashCode() |
String |
toString() |
public ExternalSessionKey(String key)
public String getKey()
public static ExternalSessionKey fromSe1Request(String piece)
public static ExternalSessionKey fromWebDriverRequest(String path)
path
- The path to the sessionpublic static ExternalSessionKey fromJsonResponseBody(String responseBody)
responseBody
- the response body to parsepublic static ExternalSessionKey fromResponseBody(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(String keyString)
public static ExternalSessionKey fromJSON(String keyString)
Copyright © 2015. All rights reserved.