Class JettyHttps

java.lang.Object
org.apache.jena.fuseki.main.JettyHttps

public class JettyHttps extends Object
Library of functions to help with setting Jetty up with HTTPS. This code is not supposed to be fully general. It sets up "http" to redirect to "https".
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.jetty.server.Server
    jettyServerHttps(org.eclipse.jetty.ee10.servlet.ServletContextHandler handler, String keystore, String certPassword, int httpPort, int httpsPort)
    Create a HTTPS Jetty server for the ServletContextHandler
    static org.eclipse.jetty.server.Server
    jettyServerHttps(org.eclipse.jetty.ee10.servlet.ServletContextHandler handler, String keystore, String certPassword, int httpPort, int httpsPort, int minThreads, int maxThreads)
    Create a HTTPS Jetty server for the ServletContextHandler

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JettyHttps

      public JettyHttps()
  • Method Details

    • jettyServerHttps

      public static org.eclipse.jetty.server.Server jettyServerHttps(org.eclipse.jetty.ee10.servlet.ServletContextHandler handler, String keystore, String certPassword, int httpPort, int httpsPort)
      Create a HTTPS Jetty server for the ServletContextHandler

      If httpPort is -1, don't add http otherwise make http redirect to https.

    • jettyServerHttps

      public static org.eclipse.jetty.server.Server jettyServerHttps(org.eclipse.jetty.ee10.servlet.ServletContextHandler handler, String keystore, String certPassword, int httpPort, int httpsPort, int minThreads, int maxThreads)
      Create a HTTPS Jetty server for the ServletContextHandler

      If httpPort is -1, don't add http otherwise make http redirect to https.