* An utility that represents an HTTP client that allows to make
* HTTP requests.
*/
+//Suppressed so UT's can mock it using Mockito.
+@SuppressWarnings("checkstyle:FinalClass")
public class SimpleHttpClient {
private final Client client;
/**
* Sets the SSLContext to be used for SSL requests.
*
- * @param sslContext the SSLContext.
+ * @param context the SSLContext.
* @return self, the client builder.
*/
- public Builder sslContext(final SSLContext sslContext) {
- this.sslContext = sslContext;
+ public Builder sslContext(final SSLContext context) {
+ this.sslContext = context;
return this;
}
/**
* Sets the hostname verifier the request is made with.
*
- * @param hostnameVerifier the hostname verifier.
+ * @param verifier the hostname verifier.
* @return self, the client builder.
*/
- public Builder hostnameVerifier(final HostnameVerifier hostnameVerifier) {
- this.hostnameVerifier = hostnameVerifier;
+ public Builder hostnameVerifier(final HostnameVerifier verifier) {
+ this.hostnameVerifier = verifier;
return this;
}