public abstract class HttpClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AbstractProxySettings |
abstractProxySettings |
protected boolean |
isClosed |
protected Logger |
logger |
protected int |
timeout |
| Constructor and Description |
|---|
HttpClient(Logger logger,
int timeout,
AbstractProxySettings abstractProxySettings) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
Logger |
getLogger() |
AbstractProxySettings |
getProxySettings() |
int |
getTimeout() |
boolean |
isClosed() |
void |
setLogger(Logger logger) |
abstract ConnectivityTarget |
target(String path)
Creates a new web resource target.
|
abstract ConnectivityTarget |
target(URI baseUrl)
Creates a new web resource target.
|
protected Logger logger
protected final int timeout
protected final AbstractProxySettings abstractProxySettings
protected boolean isClosed
public HttpClient(Logger logger, int timeout, AbstractProxySettings abstractProxySettings)
public void setLogger(Logger logger)
public abstract ConnectivityTarget target(URI baseUrl)
baseUrl - The base url of the server.public abstract ConnectivityTarget target(String path)
path - The base url of the server.public AbstractProxySettings getProxySettings()
public int getTimeout()
public Logger getLogger()
public abstract void close()
public boolean isClosed()
Copyright © 2023. All rights reserved.