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
Modifier and TypeClassDescriptionstatic class
static class
static class
Simple error handler - always text/plain. -
Method Summary
Modifier and TypeMethodDescriptionstatic JettyServer.Builder
create()
org.eclipse.jetty.server.Server
Get the underlying Jetty server which has also been set up.int
getPort()
Return the port begin used.jakarta.servlet.ServletContext
Get theServletContext
.static org.eclipse.jetty.server.Server
jettyServer
(int minThreads, int maxThreads) static org.eclipse.jetty.server.Server
jettyServer
(String jettyConfig) void
join()
Wait for the server to exit.start()
Start the server - the server continues to run after this call returns.void
stop()
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)
-