Class RequestDispatcher


  • public final class RequestDispatcher
    extends java.lang.Object
    This class is the main entry point for calls to a Virtual Schema. From here the adapter calls are dispatched to the responsible adapter.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String adapterCall​(com.exasol.ExaMetadata metadata, java.lang.String rawRequest)
      Main entry point for all Virtual Schema Adapter requests issued by the Exasol database.
      static RequestDispatcher getInstance()
      Get the singleton instance of the RequestDispatcher
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestDispatcher

        public RequestDispatcher()
    • Method Detail

      • adapterCall

        public static java.lang.String adapterCall​(com.exasol.ExaMetadata metadata,
                                                   java.lang.String rawRequest)
                                            throws AdapterException
        Main entry point for all Virtual Schema Adapter requests issued by the Exasol database.
        Parameters:
        metadata - metadata for the context in which the adapter exists (e.g. the schema into which it is installed)
        rawRequest - request issued in the call to the Virtual Schema Adapter
        Returns:
        response resulting from the adapter call
        Throws:
        AdapterException - in case the request type is not recognized