java.lang.Object
org.apache.jena.fuseki.main.sys.JettyLib

public class JettyLib extends Object
Helpers for working with Jetty.

SecurityHandler

     UserStore userStore = JettyLib.makeUserStore(...);
     SecurityHandler securityHandler = JettyLib.makeSecurityHandler(String pathSpec, String realm, UserStore userStore);
  
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addHandler(org.eclipse.jetty.server.Server server, org.eclipse.jetty.server.Handler handler)
    Add or append a Handler to a Jetty Server.
    static org.eclipse.jetty.server.HttpConfiguration
    HTTP configuration with setting for Fuseki workload.
    static org.eclipse.jetty.util.resource.Resource
    newResource(String filename)
    Create a resource for a filename
    static void
    setMimeTypes(org.eclipse.jetty.ee10.servlet.ServletContextHandler context)
    Add the RDF MIME Type mappings

    Methods inherited from class java.lang.Object

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

    • JettyLib

      public JettyLib()
  • Method Details

    • addHandler

      public static void addHandler(org.eclipse.jetty.server.Server server, org.eclipse.jetty.server.Handler handler)
      Add or append a Handler to a Jetty Server.
    • setMimeTypes

      public static void setMimeTypes(org.eclipse.jetty.ee10.servlet.ServletContextHandler context)
      Add the RDF MIME Type mappings
    • httpConfiguration

      public static org.eclipse.jetty.server.HttpConfiguration httpConfiguration()
      HTTP configuration with setting for Fuseki workload. No "secure" settings.
    • newResource

      public static org.eclipse.jetty.util.resource.Resource newResource(String filename)
      Create a resource for a filename