Package com.exasol.adapter
Class RequestDispatcher
- java.lang.Object
-
- com.exasol.adapter.RequestDispatcher
-
public final class RequestDispatcher extends 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.
-
-
Constructor Summary
Constructors Constructor Description RequestDispatcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringadapterCall(com.exasol.ExaMetadata metadata, String rawRequest)Main entry point for all Virtual Schema Adapter requests issued by the Exasol database.static RequestDispatchergetInstance()Get the singleton instance of theRequestDispatcher
-
-
-
Method Detail
-
getInstance
public static RequestDispatcher getInstance()
Get the singleton instance of theRequestDispatcher- Returns:
- singleton instance
-
adapterCall
public static String adapterCall(com.exasol.ExaMetadata metadata, 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
-
-