Introduced factory methods for HTTP2Client and HttpClient.
This commit is contained in:
parent
7598062bbb
commit
24b99d4b33
|
@ -167,7 +167,6 @@ public abstract class AbstractTest
|
|||
case H2:
|
||||
{
|
||||
HTTP2Client http2Client = newHTTP2Client();
|
||||
http2Client.setSelectors(1);
|
||||
return new HttpClientTransportOverHTTP2(http2Client);
|
||||
}
|
||||
case FCGI:
|
||||
|
@ -181,6 +180,18 @@ public abstract class AbstractTest
|
|||
}
|
||||
}
|
||||
|
||||
protected HttpClient newHttpClient(HttpClientTransport transport, SslContextFactory sslContextFactory)
|
||||
{
|
||||
return new HttpClient(transport, sslContextFactory);
|
||||
}
|
||||
|
||||
protected HTTP2Client newHTTP2Client()
|
||||
{
|
||||
HTTP2Client http2Client = new HTTP2Client();
|
||||
http2Client.setSelectors(1);
|
||||
return http2Client;
|
||||
}
|
||||
|
||||
protected String newURI()
|
||||
{
|
||||
switch (transport)
|
||||
|
|
Loading…
Reference in New Issue