Skip to content

Commit

Permalink
[UNDERTOW-2357] remove JDK check in Http2 exxapmle
Browse files Browse the repository at this point in the history
  • Loading branch information
baranowb committed Mar 18, 2024
1 parent 128b967 commit 0b2779e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,7 @@ public class Http2Server {
private static final char[] STORE_PASSWORD = "password".toCharArray();

public static void main(final String[] args) throws Exception {
String version = System.getProperty("java.version");
System.out.println("Java version " + version);
if(version.charAt(0) == '1' && Integer.parseInt(version.charAt(2) + "") < 8 ) {
System.out.println("This example requires Java 1.8 or later");
System.out.println("The HTTP2 spec requires certain cyphers that are not present in older JVM's");
System.out.println("See section 9.2.2 of the HTTP2 specification for details");
System.exit(1);
}

String bindAddress = System.getProperty("bind.address", "localhost");
SSLContext sslContext = createSSLContext(loadKeyStore("server.keystore"), loadKeyStore("server.truststore"));
Undertow server = Undertow.builder()
Expand Down

0 comments on commit 0b2779e

Please sign in to comment.