Class HttpClientFactory
java.lang.Object
fr.enedis.chutney.action.http.domain.HttpClientFactory
-
Constructor Details
-
HttpClientFactory
public HttpClientFactory()
-
-
Method Details
-
create
public HttpClient create(fr.enedis.chutney.action.spi.injectable.Logger logger, fr.enedis.chutney.action.spi.injectable.Target target, Class<String> responseType, int timeout) - Returns:
- an
HttpClientdepending on givenTargetable to handle:- no security
- basic-auth
- TLS (trust everything by default, hostname verifier is disabled)
- TLS one-way
- TLS two-way
-