@@ -98,7 +98,7 @@ public class DefaultHttpProvider implements IHttpProvider {
9898 private IConnectionConfig connectionConfig ;
9999
100100 /**
101- * Creates the DefaultHttpProvider
101+ * Creates the DefaultHttpProvider using a DefaultConnectionFactory.
102102 *
103103 * @param serializer the serializer
104104 * @param authenticationProvider the authentication provider
@@ -109,11 +109,28 @@ public DefaultHttpProvider(final ISerializer serializer,
109109 final IAuthenticationProvider authenticationProvider ,
110110 final IExecutors executors ,
111111 final ILogger logger ) {
112+ this (serializer , authenticationProvider , executors , logger , new DefaultConnectionFactory ());
113+ }
114+
115+ /**
116+ * Creates the DefaultHttpProvider
117+ *
118+ * @param serializer the serializer
119+ * @param authenticationProvider the authentication provider
120+ * @param executors the executors
121+ * @param logger the logger for diagnostic information
122+ * @param connectionFactory an IConnectionFactory to create outgoing connections
123+ */
124+ public DefaultHttpProvider (final ISerializer serializer ,
125+ final IAuthenticationProvider authenticationProvider ,
126+ final IExecutors executors ,
127+ final ILogger logger ,
128+ final IConnectionFactory connectionFactory ) {
112129 this .serializer = serializer ;
113130 this .authenticationProvider = authenticationProvider ;
114131 this .executors = executors ;
115132 this .logger = logger ;
116- connectionFactory = new DefaultConnectionFactory () ;
133+ this . connectionFactory = connectionFactory ;
117134 }
118135
119136 /**
0 commit comments