Class JettyServer

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

public class JettyServer extends Object
Jetty server for servlets, including being able to run Fuseki ActionBase derived servlets. Static RDF types by file extension can be enabled.
  • Method Details

    • create

      public static JettyServer.Builder create()
    • getPort

      public int getPort()
      Return the port begin used. This will be the give port, which defaults to 3330, or the one actually allocated if the port was 0 ("choose a free port").
    • getJettyServer

      public org.eclipse.jetty.server.Server getJettyServer()
      Get the underlying Jetty server which has also been set up.
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
      Get the ServletContext. Adding new servlets is possible with care.
    • start

      public JettyServer start()
      Start the server - the server continues to run after this call returns. To synchronise with the server stopping, call join().
    • stop

      public void stop()
      Stop the server.
    • join

      public void join()
      Wait for the server to exit. This call is blocking.
    • jettyServer

      public static org.eclipse.jetty.server.Server jettyServer(String jettyConfig)
    • jettyServer

      public static org.eclipse.jetty.server.Server jettyServer(int minThreads, int maxThreads)