You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2026/06/16 19:46:54 UTC
(jena) 03/03: Jetty Handler
This is an automated email from the ASF dual-hosted git repository.
afs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
commit 94e09c8a3e79525c0e7a83a842cf1a3334452de3
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sun Jun 14 20:37:27 2026 +0100
Jetty Handler
---
.../main/java/org/apache/jena/fuseki/main/JettyHttps.java | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/jena-fuseki2/jena-fuseki-main/src/main/java/org/apache/jena/fuseki/main/JettyHttps.java b/jena-fuseki2/jena-fuseki-main/src/main/java/org/apache/jena/fuseki/main/JettyHttps.java
index 8f30369c3f..4e97a914d8 100644
--- a/jena-fuseki2/jena-fuseki-main/src/main/java/org/apache/jena/fuseki/main/JettyHttps.java
+++ b/jena-fuseki2/jena-fuseki-main/src/main/java/org/apache/jena/fuseki/main/JettyHttps.java
@@ -23,6 +23,7 @@ package org.apache.jena.fuseki.main;
import org.apache.jena.fuseki.main.sys.JettyLib;
import org.eclipse.jetty.ee11.servlet.ServletContextHandler;
+//import org.eclipse.jetty.ee11.servlet.ServletContextHandler;
import org.eclipse.jetty.http.HttpScheme;
import org.eclipse.jetty.http.HttpVersion;
import org.eclipse.jetty.server.*;
@@ -50,21 +51,27 @@ public class JettyHttps {
*/
/**
- * Create a HTTPS Jetty server for the {@link ServletContextHandler}
+ * Create a HTTPS Jetty server for the {@link Handler}.
+ * <p>
+ * {@link Handler} is a Jetty feature,
+ * This can be a {@link ServletContextHandler} - the Jetty support for standard servlets.
* <p>
* If httpPort is -1, don't add http otherwise make http redirect to https.
*/
- public static Server jettyServerHttps(ServletContextHandler handler, String keystore, String certPassword,
+ public static Server jettyServerHttps(Handler handler, String keystore, String certPassword,
int httpPort, int httpsPort) {
return jettyServerHttps(handler, keystore, certPassword, httpPort, httpsPort, -1, -1);
}
/**
- * Create a HTTPS Jetty server for the {@link ServletContextHandler}
+ * Create a HTTPS Jetty server for the {@link Handler}.
+ * <p>
+ * {@link Handler} is a Jetty feature,
+ * This can be a {@link ServletContextHandler} - the Jetty support for standard servlets.
* <p>
* If httpPort is -1, don't add http otherwise make http redirect to https.
*/
- public static Server jettyServerHttps(ServletContextHandler handler, String keystore, String certPassword,
+ public static Server jettyServerHttps(Handler handler, String keystore, String certPassword,
int httpPort, int httpsPort,
int minThreads, int maxThreads) {
// Server handling http and https.