Package com.exasol.adapter
Class RequestDispatcher
- java.lang.Object
-
- com.exasol.adapter.RequestDispatcher
-
public final class RequestDispatcher extends java.lang.ObjectThis 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 java.lang.StringadapterCall(com.exasol.ExaMetadata metadata, java.lang.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 java.lang.String adapterCall(com.exasol.ExaMetadata metadata, java.lang.String rawRequest) throws AdapterExceptionMain 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
-
-