java.lang.Object
org.apache.jena.fuseki.main.JettyServer
Jetty server for servlets, including being able to run Fuseki
ActionBase derived servlets.
Static RDF types by file extension can be enabled.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classSimple error handler - always text/plain. -
Method Summary
Modifier and TypeMethodDescriptionstatic JettyServer.Buildercreate()org.eclipse.jetty.server.ServerGet the underlying Jetty server which has also been set up.intgetPort()Return the port begin used.jakarta.servlet.ServletContextGet theServletContext.static org.eclipse.jetty.server.ServerjettyServer(int minThreads, int maxThreads) static org.eclipse.jetty.server.ServerjettyServer(String jettyConfig) voidjoin()Wait for the server to exit.start()Start the server - the server continues to run after this call returns.voidstop()Stop the server.
-
Method Details
-
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 theServletContext. Adding new servlets is possible with care. -
start
Start the server - the server continues to run after this call returns. To synchronise with the server stopping, calljoin(). -
stop
public void stop()Stop the server. -
join
public void join()Wait for the server to exit. This call is blocking. -
jettyServer
-
jettyServer
public static org.eclipse.jetty.server.Server jettyServer(int minThreads, int maxThreads)
-