Class FusekiMain

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

public class FusekiMain extends Object
Programmatic ways to create a server builder using command line syntax.

This also has a convenience ways to run a server.

If used in testing, the following may be used:

    FusekiServer server = FusekiMain.runAync("--port=0", args);
    String URL = server.serverURL();
    // or server.getPort()
    try {
        ...
    } finally { server.stop(); }
 
Using port 0 causes the kernel to allocate a free port. It is important for test to close servers promptly.
See Also:
  • Constructor Details

    • FusekiMain

      public FusekiMain()
  • Method Details