org.openqa.grid.internal
Class ExternalSessionKey
java.lang.Object
org.openqa.grid.internal.ExternalSessionKey
public class ExternalSessionKey
- extends Object
ExternalSessionKey
public ExternalSessionKey(String key)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getKey
public String getKey()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
fromSe1Request
public static ExternalSessionKey fromSe1Request(String piece)
fromWebDriverRequest
public static ExternalSessionKey fromWebDriverRequest(String path)
- extract the session xxx from http://host:port/a/b/c/session/xxx/...
- Parameters:
path
- The path to the session
- Returns:
- the ExternalSessionKey provided by the remote., or null if the url didn't contain a session id
fromResponseBody
public static ExternalSessionKey fromResponseBody(String responseBody)
throws NewSessionException
- extract the external key from the server response for a selenium1 new session request.
- Parameters:
responseBody
- the response from the server
- Returns:
- the ExternalKey if it was present in the server's response.
- Throws:
NewSessionException
- in case the server didn't send back a success result.
fromString
public static ExternalSessionKey fromString(String keyString)
fromJSON
public static ExternalSessionKey fromJSON(String keyString)
Copyright © 2012. All Rights Reserved.