com.applitools.connectivity.api.HttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-common-java5 Show documentation
Show all versions of eyes-common-java5 Show documentation
Common code for Applitools Eyes Java SDK projects
package com.applitools.connectivity.api;
import com.applitools.eyes.AbstractProxySettings;
import com.applitools.eyes.Logger;
import java.net.URI;
public abstract class HttpClient {
protected Logger logger;
protected final int timeout;
protected final AbstractProxySettings abstractProxySettings;
protected boolean isClosed = false;
public HttpClient(Logger logger, int timeout, AbstractProxySettings abstractProxySettings) {
this.logger = logger;
this.timeout = timeout;
this.abstractProxySettings = abstractProxySettings;
}
public void setLogger(Logger logger) {
this.logger = logger;
}
/**
* Creates a new web resource target.
*
* @param baseUrl The base url of the server.
* @return The created target
*/
public abstract ConnectivityTarget target(URI baseUrl);
/**
* Creates a new web resource target.
*
* @param path The base url of the server.
* @return The created target
*/
public abstract ConnectivityTarget target(String path);
public AbstractProxySettings getProxySettings() {
return abstractProxySettings;
}
public int getTimeout() {
return timeout;
}
public Logger getLogger() {
return logger;
}
public abstract void close();
public boolean isClosed() {
return isClosed;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy