Package com.applitools.connectivity.api
Class HttpClient
- java.lang.Object
-
- com.applitools.connectivity.api.HttpClient
-
public abstract class HttpClient extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractProxySettingsabstractProxySettingsprotected booleanisClosedprotected Loggerloggerprotected inttimeout
-
Constructor Summary
Constructors Constructor Description HttpClient(Logger logger, int timeout, AbstractProxySettings abstractProxySettings)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclose()LoggergetLogger()AbstractProxySettingsgetProxySettings()intgetTimeout()booleanisClosed()voidsetLogger(Logger logger)abstract ConnectivityTargettarget(String path)Creates a new web resource target.abstract ConnectivityTargettarget(URI baseUrl)Creates a new web resource target.
-
-
-
Field Detail
-
logger
protected Logger logger
-
timeout
protected final int timeout
-
abstractProxySettings
protected final AbstractProxySettings abstractProxySettings
-
isClosed
protected boolean isClosed
-
-
Constructor Detail
-
HttpClient
public HttpClient(Logger logger, int timeout, AbstractProxySettings abstractProxySettings)
-
-
Method Detail
-
setLogger
public void setLogger(Logger logger)
-
target
public abstract ConnectivityTarget target(URI baseUrl)
Creates a new web resource target.- Parameters:
baseUrl- The base url of the server.- Returns:
- The created target
-
target
public abstract ConnectivityTarget target(String path)
Creates a new web resource target.- Parameters:
path- The base url of the server.- Returns:
- The created target
-
getProxySettings
public AbstractProxySettings getProxySettings()
-
getTimeout
public int getTimeout()
-
getLogger
public Logger getLogger()
-
close
public abstract void close()
-
isClosed
public boolean isClosed()
-
-