Added factory method to create HTTP2Client.
This commit is contained in:
parent
133e9e054d
commit
aa46a51b33
|
@ -173,8 +173,7 @@ public abstract class AbstractTest
|
|||
case H2C:
|
||||
case H2:
|
||||
{
|
||||
HTTP2Client http2Client = new HTTP2Client();
|
||||
http2Client.setSelectors(1);
|
||||
HTTP2Client http2Client = newHTTP2Client();
|
||||
return new HttpClientTransportOverHTTP2(http2Client);
|
||||
}
|
||||
case FCGI:
|
||||
|
@ -188,6 +187,13 @@ public abstract class AbstractTest
|
|||
}
|
||||
}
|
||||
|
||||
protected HTTP2Client newHTTP2Client()
|
||||
{
|
||||
HTTP2Client http2Client = new HTTP2Client();
|
||||
http2Client.setSelectors(1);
|
||||
return http2Client;
|
||||
}
|
||||
|
||||
protected String newURI()
|
||||
{
|
||||
switch (transport)
|
||||
|
|
Loading…
Reference in New Issue