java.lang.Object
org.apache.jena.fuseki.server.Dispatcher

public class Dispatcher extends Object
Dispatch on registered datasets. This is the entry point into Fuseki for dataset operations. Administration operations, and directly registered servlets and static content are called through the usual web server process. HTTP Request URLs, after servlet context removed, take the form /dataset or /dataset/service. The most general URL is /context/dataset/service. The DataAccessPointRegistry maps /dataset to a DataAccessPoint.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Handle an HTTP request if it is sent to a registered dataset.

    Methods inherited from class java.lang.Object

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

    • Dispatcher

      public Dispatcher()
  • Method Details

    • dispatch

      public static boolean dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle an HTTP request if it is sent to a registered dataset. Fuseki uses dynamic dispatch, the set of registered datasets can change while the server is running, so dispatch is driven off Fuseki system registries. If the request URL matches a registered dataset, process the request, and send the response. This function is called by FusekiFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain). Returns true if the request has been handled, including an error response sent, and returns false (no error or response sent) if the request has not been handled. This function does not throw exceptions.