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.server.Handler handler, String keystore, String certPassword, int httpPort, int httpsPort)
    Create a HTTPS Jetty server for the Handler.
    static org.eclipse.jetty.server.Server
    jettyServerHttps(org.eclipse.jetty.server.Handler handler, String keystore, String certPassword, int httpPort, int httpsPort, int minThreads, int maxThreads)
    Create a HTTPS Jetty server for the Handler.

    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.server.Handler handler, String keystore, String certPassword, int httpPort, int httpsPort)
      Create a HTTPS Jetty server for the Handler.

      Handler is a Jetty feature, This can be a ServletContextHandler - the Jetty support for standard servlets.

      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.server.Handler handler, String keystore, String certPassword, int httpPort, int httpsPort, int minThreads, int maxThreads)
      Create a HTTPS Jetty server for the Handler.

      Handler is a Jetty feature, This can be a ServletContextHandler - the Jetty support for standard servlets.

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