Class Dispatcher


  • public class Dispatcher
    extends java.lang.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
      Dispatcher()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 Detail

      • Dispatcher

        public Dispatcher()
    • Method Detail

      • 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.