File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
main/java/oracle/nosql/driver/iam
test/java/oracle/nosql/driver Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 24
24
import java .util .Set ;
25
25
import java .util .logging .Logger ;
26
26
27
- import io .netty .handler .ssl .ApplicationProtocolNames ;
28
27
import oracle .nosql .driver .NoSQLHandleConfig ;
29
28
import oracle .nosql .driver .Region ;
30
29
import oracle .nosql .driver .Region .RegionProvider ;
34
33
import oracle .nosql .driver .iam .SecurityTokenSupplier .SecurityTokenBasedProvider ;
35
34
import oracle .nosql .driver .iam .SessionKeyPairSupplier .DefaultSessionKeySupplier ;
36
35
import oracle .nosql .driver .iam .SessionKeyPairSupplier .JDKKeyPairSupplier ;
36
+ import oracle .nosql .driver .util .HttpConstants ;
37
37
import oracle .nosql .driver .util .HttpRequestUtil ;
38
38
import oracle .nosql .driver .util .HttpRequestUtil .HttpResponse ;
39
39
@@ -300,7 +300,7 @@ private void autoDetectEndpointUsingMetadataUrl() {
300
300
null ,
301
301
0 ,
302
302
"InstanceMDClient" ,
303
- Arrays .asList (ApplicationProtocolNames .HTTP_1_1 ),
303
+ Arrays .asList (HttpConstants .HTTP_1_1 ),
304
304
logger );
305
305
306
306
HttpResponse response = HttpRequestUtil .doGetRequest
Original file line number Diff line number Diff line change 33
33
import java .util .logging .Level ;
34
34
import java .util .logging .Logger ;
35
35
36
- import io .netty .handler .ssl .ApplicationProtocolNames ;
37
36
import oracle .nosql .driver .http .Client ;
38
37
import oracle .nosql .driver .http .NoSQLHandleImpl ;
39
38
import oracle .nosql .driver .kv .StoreAccessTokenProvider ;
53
52
import oracle .nosql .driver .ops .TableResult ;
54
53
import oracle .nosql .driver .ops .WriteMultipleRequest ;
55
54
import oracle .nosql .driver .ops .WriteMultipleResult ;
55
+ import oracle .nosql .driver .util .HttpConstants ;
56
56
import oracle .nosql .driver .values .ArrayValue ;
57
57
import oracle .nosql .driver .values .MapValue ;
58
58
@@ -467,11 +467,11 @@ protected NoSQLHandle getHandle(NoSQLHandleConfig config) {
467
467
468
468
boolean useHttp1only = Boolean .getBoolean ("test.http1only" );
469
469
if (useHttp1only ) {
470
- config .setHttpProtocols (ApplicationProtocolNames .HTTP_1_1 );
470
+ config .setHttpProtocols (HttpConstants .HTTP_1_1 );
471
471
}
472
472
boolean useHttp2only = Boolean .getBoolean ("test.http2only" );
473
473
if (useHttp2only ) {
474
- config .setHttpProtocols (ApplicationProtocolNames .HTTP_2 );
474
+ config .setHttpProtocols (HttpConstants .HTTP_2 );
475
475
}
476
476
477
477
/*
Original file line number Diff line number Diff line change 17
17
import javax .net .ssl .SSLException ;
18
18
import java .net .URL ;
19
19
20
- import io .netty .handler .ssl .ApplicationProtocolNames ;
21
20
import org .junit .Before ;
22
21
import org .junit .Test ;
23
22
26
25
import io .netty .handler .ssl .SslContextBuilder ;
27
26
28
27
import oracle .nosql .driver .NoSQLHandleConfig ;
28
+ import oracle .nosql .driver .util .HttpConstants ;
29
29
30
30
/**
31
31
* This test is excluded from the test profiles and must be run standalone.
@@ -73,7 +73,7 @@ public void poolTest() throws Exception {
73
73
null , // sslCtx
74
74
0 , // ssl handshake timeout
75
75
"Pool Test" ,
76
- Arrays .asList (ApplicationProtocolNames .HTTP_1_1 ),
76
+ Arrays .asList (HttpConstants .HTTP_1_1 ),
77
77
logger );
78
78
79
79
ConnectionPool pool = client .getConnectionPool ();
@@ -173,7 +173,7 @@ public void testCloudTimeout() throws Exception {
173
173
buildSslContext (),
174
174
0 , // ssl handshake timeout
175
175
"Pool Cloud Test" ,
176
- Arrays .asList (ApplicationProtocolNames .HTTP_1_1 ),
176
+ Arrays .asList (HttpConstants .HTTP_1_1 ),
177
177
logger );
178
178
179
179
ConnectionPool pool = client .getConnectionPool ();
You can’t perform that action at this time.
0 commit comments