package ro.szzsa.utils.connector;

import ro.szzsa.utils.connector.log.Logger;

/**
 *
 */
public final class HttpConnectorBuilder {

  private final HttpConnector connector;

  public HttpConnectorBuilder() {
    connector = new HttpConnector();
  }

  public void setUsername(String username) {
    connector.setUsername(username);
  }

  public void setPassword(String password) {
    connector.setPassword(password);
  }

  public void setSocketTimeout(int socketTimeout) {
    connector.setSocketTimeout(socketTimeout);
  }

  public void setConnectionTimeout(int connectionTimeout) {
    connector.setConnectionTimeout(connectionTimeout);
  }

  public void setNumberOfRetries(int numberOfRetries) {
    connector.setNumberOfRetries(numberOfRetries);
  }

  public void setLogger(Logger logger) {
    connector.setLogger(logger);
  }

  public HttpConnector build() {
    return connector;
  }
}

@@ -250,28 +250,44 @@
 %7D%0A%0A  public 
-void
+HttpConnectorBuilder
  setUsername
@@ -345,32 +345,65 @@
 ame);%0A  
-%7D%0A%0A  public void
+  return this;%0A  %7D%0A%0A  public HttpConnectorBuilder
  setPass
@@ -465,32 +465,65 @@
 ord);%0A  
-%7D%0A%0A  public void
+  return this;%0A  %7D%0A%0A  public HttpConnectorBuilder
  setSock
@@ -602,32 +602,65 @@
 out);%0A  
-%7D%0A%0A  public void
+  return this;%0A  %7D%0A%0A  public HttpConnectorBuilder
  setConn
@@ -755,32 +755,65 @@
 out);%0A  
-%7D%0A%0A  public void
+  return this;%0A  %7D%0A%0A  public HttpConnectorBuilder
  setNumb
@@ -904,24 +904,57 @@
 ;%0A  
-%7D%0A%0A  public void
+  return this;%0A  %7D%0A%0A  public HttpConnectorBuilder
  set
@@ -1010,16 +1010,33 @@
 ogger);%0A
+    return this;%0A
   %7D%0A%0A  p

Fix http connector builder