@xmobitea/gn-server
Version:
GearN Server by XmobiTea (Pro)
19 lines (18 loc) • 1.04 kB
TypeScript
import { OperationResponse } from "./../../../GN-common/entity/operationResponse/OperationResponse";
import { Request } from "./../../../GN-common/entity/operationRequest/base/Request";
import { IRequestHandler } from "./handler/base/IRequestHandler";
import { IRequestConverterService } from "./../../service/IRequestConverterService";
export declare class RequestController {
private handlers;
private requestUnAuthenticatedCodes;
private requestConverterService;
setRequestConverterService(requestConverterService: IRequestConverterService): void;
getRequestUnAuthenticatedCodes(): string[];
addHandler(requestType: number, requestHandler: IRequestHandler, onlyAuthenticated?: boolean): void;
removeHandler(requestType: number, operationCode: string): void;
removeAllHandlers(): void;
getHandler(requestType: number, operationCode: string): IRequestHandler;
getAllHandlers(requestType: number): IRequestHandler[];
handleRequest(request: Request): Promise<OperationResponse>;
constructor();
}