public class Jersey2xServerConnector extends RestClient implements ServerConnector
RestClient.HttpMethodCall| Modifier and Type | Field and Description |
|---|---|
protected String |
apiKey |
protected String |
sdkName |
endPoint, jsonMapper, logger, restClient, serverUrl| Constructor and Description |
|---|
Jersey2xServerConnector(Logger logger,
String sdkName,
URI serverUrl) |
| Modifier and Type | Method and Description |
|---|---|
String |
getApiKey() |
ProxySettings |
getProxy() |
URI |
getServerUrl() |
MatchResult |
matchWindow(RunningSession runningSession,
MatchWindowData matchData)
Matches the current window (held by the WebDriver) to the expected
window.
|
void |
setApiKey(String apiKey)
Sets the API key of your applitools Eyes account.
|
void |
setProxy(ProxySettings proxySettings)
Sets the proxy settings to be used by the rest client.
|
void |
setServerUrl(URI serverUrl)
Sets the current server URL used by the rest client.
|
RunningSession |
startSession(SessionStartInfo sessionStartInfo)
Starts a new running session in the agent.
|
TestResults |
stopSession(RunningSession runningSession,
boolean isAborted,
boolean save)
Stops the running session.
|
getProxyBase, getReadResponseError, getServerUrlBase, getTimeout, parseResponseWithJsonData, sendLongRequest, setProxyBase, setServerUrlBase, setTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTimeoutpublic void setApiKey(String apiKey)
setApiKey in interface ServerConnectorapiKey - The api key to set.public String getApiKey()
getApiKey in interface ServerConnectornull if no key is set.public void setProxy(ProxySettings proxySettings)
setProxy in interface ServerConnectorproxySettings - The proxy settings to be used by the rest client.
If null then no proxy is set.public ProxySettings getProxy()
getProxy in interface ServerConnectornull if no proxy is set.public void setServerUrl(URI serverUrl)
setServerUrl in interface ServerConnectorserverUrl - The URI of the rest server.public URI getServerUrl()
getServerUrl in interface ServerConnectorpublic RunningSession startSession(SessionStartInfo sessionStartInfo) throws EyesException
startSession in interface ServerConnectorsessionStartInfo - The start parameters for the session.EyesException - For invalid status codes, or if response parsing
failed.public TestResults stopSession(RunningSession runningSession, boolean isAborted, boolean save) throws EyesException
stopSession in interface ServerConnectorrunningSession - The running session to be stopped.EyesException - For invalid status codes, or if response parsing
failed.public MatchResult matchWindow(RunningSession runningSession, MatchWindowData matchData) throws EyesException
matchWindow in interface ServerConnectorrunningSession - The current agent's running session.matchData - Encapsulation of a capture taken from the application.EyesException - For invalid status codes, or response parsing
failed.Copyright © 2016. All rights reserved.